mirror of
https://github.com/huggingface/diffusers.git
synced 2026-10-24 20:59:27 +03:00
Fix AttributeError in onnxruntime train_unconditional The ORT example `examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py` defines `--logger` (argparse line 196) but references `args.report_to` in two places: * Line 280: `if args.report_to == "wandb" and args.hub_token is not None:` * Line 294: `log_with=args.report_to,` Since there is no `--report_to` flag on the parser, both references crash with `AttributeError: 'Namespace' object has no attribute 'report_to'` as soon as `main()` starts — the script cannot run at all. The sibling non-ORT script `examples/unconditional_image_generation/train_unconditional.py` uses `args.logger` consistently; this PR aligns the ORT variant with that behavior, and updates the error message to refer to `--logger=wandb` instead of the non-existent `--report_to=wandb`.
Research projects
This folder contains various research projects using 🧨 Diffusers. They are not really maintained by the core maintainers of this library and often require a specific version of Diffusers that is indicated in the requirements file of each folder. Updating them to the most recent version of the library will require some work.
To use any of them, just run the command
pip install -r requirements.txt
inside the folder of your choice.
If you need help with any of those, please open an issue where you directly ping the author(s), as indicated at the top of the README of each folder.