train_unconditional.py fails on call to evaluate()
See original GitHub issueDescribe the bug
On the first attempt to call evaluate()
in the train_loop() function, the DDPMPipeline fails due to an incompatible output form the model.
This raises an AttributeError: ‘dict’ object has no attribute ‘shape’
Reproduction
Currently encountered when running the collab notebook unaltered.
Logs
Logs included in bug description.
System Info
Google Collab Notebook found at https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/training_example.ipynb
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to train on custom dataset? · Issue #2 - GitHub
The error I get is this: D:\pro_gan_pytorch-examples\implementation>python generate.py Traceback (most recent call last): File "generate.py" ...
Read more >Failed to evaluate transaction: Error: You've asked to invoke a ...
This is an AdminContract smart contract that inherits CommonContract and has a single function getLastPatientId() it generally returns the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@LuisGalvezCarrasco indeed,
tensor_format
has been deprecated in the latest version 😃 Updated the training notebook todiffusers==0.5.1
: https://colab.research.google.com/github/huggingface/notebooks/blob/main/diffusers/training_example.ipynbIn evaluate function, this worked for me: I changed .sample
to .images