huggingface / diffusers

🤗 Diffusers: State-of-the-art diffusion models for image and audio generation in PyTorch and FLAX.
https://huggingface.co/docs/diffusers
Apache License 2.0
25.36k stars 5.25k forks source link

src/diffusers/utils /outputs.py: Deprecation Warning for torch.utils._pytree._register_pytree_node in latest PyTorch #7000

Closed zyinghua closed 7 months ago

zyinghua commented 7 months ago

Describe the bug

Hi! The latest version of PyTorch has deprecated torch.utils._pytree._register_pytree_node, recommending the use of torch.utils._pytree.register_pytree_node (without the leading underscore). Perhaps not an urgent issue but wondering might affect long-term compatibility. Happened when I run diffusers/examples/unconditional_image_generation/train_unconditional.py

Reproduction

accelerate launch --multi_gpu train_unconditional.py --train_data_files="your-path-to-data-file/102-flowers.zip" --output_dir="your-path-to-output-folder/ddpm-ema-flowers-64"

Logs

torch.utils._pytree._register_pytree_node(
/root/miniconda3/lib/python3.8/site-packages/diffusers/utils/outputs.py:63: UserWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.

System Info

Who can help?

No response

yiyixuxu commented 7 months ago

hi! thanks! do you want to open a PR help us update this? :)

zyinghua commented 7 months ago

hi! thanks! do you want to open a PR help us update this? :)

Hi! Sure happy to do that :)

floatingwh commented 5 months ago

VisualGLM-6B-error Who know this error ?How to fix it?