huggingface/diffusion-models-class

Unit1/01_introduction_to_diffusers.ipynb

yao-yu1999 opened this issue · 4 comments

This link doesn't seem right. Have you changed the address?
https://github.com/huggingface/diffusers/raw/main/examples/unconditional_image_generation/train_unconditional.py
Is this link the same as the one above?
"https://github.com/huggingface/diffusers/blob/main/examples/unconditional_image_generation/train_unconditional.py"
If yes, do you know what the error is and how to solve it?

It looks like the script is trying to import a library that isn't installed on your machine. Try
pip install tensorboard - hopefully that will solve it

Wow, problem solved, thanks!

In Accelerate script there is warning coming.

UserWarning: Grad strides do not match bucket view strides. This may indicate grad was not created according to the gradient layout contract, or that the param's strides changed since DDP was constructed. This is not an error, but may impair performance.
grad.sizes() = [512, 1024, 1, 1], strides() = [1024, 1, 1024, 1024]
bucket_view.sizes() = [512, 1024, 1, 1], strides() = [1024, 1, 1, 1] (Triggered internally at ../torch/csrc/distributed/c10d/reducer.cpp:323.).

Can this cause issue?I guess this is because of not using contiguous after permute somewhere in diffusers.

@ayu1729 Hi, did you find any solution your above mentioned warning?