Skip to content

Conversation

@prathikr
Copy link
Contributor

@prathikr prathikr commented Dec 5, 2022

Fixes the following error:

Traceback (most recent call last):
  File "/workspace/diffusers/examples/unconditional_image_generation/train_unconditional_ort.py", line 276, in <module>
    main(args)
  File "/workspace/diffusers/examples/unconditional_image_generation/train_unconditional_ort.py", line 76, in main
    noise_scheduler = DDPMScheduler(num_train_timesteps=1000, tensor_format="pt")
  File "/opt/conda/envs/ptca/lib/python3.8/site-packages/diffusers-0.10.0.dev0-py3.8.egg/diffusers/configuration_utils.py", line 567, in inner_init
    init(self, *args, **init_kwargs)
  File "/opt/conda/envs/ptca/lib/python3.8/site-packages/diffusers-0.10.0.dev0-py3.8.egg/diffusers/schedulers/scheduling_ddpm.py", line 129, in __init__
    predict_epsilon = deprecate("predict_epsilon", "0.11.0", message, take_from=kwargs)
  File "/opt/conda/envs/ptca/lib/python3.8/site-packages/diffusers-0.10.0.dev0-py3.8.egg/diffusers/utils/deprecation_utils.py", line 43, in deprecate
    raise TypeError(f"{function} in {filename} line {line_number-1} got an unexpected keyword argument `{key}`")
TypeError: __init__ in /opt/conda/envs/ptca/lib/python3.8/site-packages/diffusers-0.10.0.dev0-py3.8.egg/diffusers/schedulers/scheduling_ddpm.py line 128 got an unexpected keyword argument `tensor_format`

@prathikr
Copy link
Contributor Author

prathikr commented Dec 5, 2022

@patrickvonplaten @anton-l could I please get a review on this quick bug fix?

@prathikr
Copy link
Contributor Author

prathikr commented Dec 7, 2022

@JingyaHuang could you please review this as well?

@anton-l
Copy link
Member

anton-l commented Dec 10, 2022

Hi @prathikr, thanks for the fix! Happy to merge once you resolve that merge conflict :)

Copy link
Contributor

@JingyaHuang JingyaHuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Dec 12, 2022

The documentation is not available anymore as the PR was closed or merged.

@anton-l anton-l merged commit 4645e28 into huggingface:main Dec 12, 2022
tcapelle pushed a commit to tcapelle/diffusers that referenced this pull request Dec 12, 2022
bug fix

Co-authored-by: Prathik Rao <[email protected]>
Co-authored-by: anton- <[email protected]>
sliard pushed a commit to sliard/diffusers that referenced this pull request Dec 21, 2022
bug fix

Co-authored-by: Prathik Rao <[email protected]>
Co-authored-by: anton- <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants