Skip to content

ValueError: Key down_blocks.0.attentions.0.transformer_blocks.0.attn1.processor is invalid, expected torch.Tensor but received <class 'dict'> #4889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Sandeep-Narahari opened this issue Sep 4, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Sandeep-Narahari
Copy link

Describe the bug

After completing the training I got this error while training custom diffusion
Screenshot from 2023-09-05 02-40-37

Reproduction

!accelerate launch train_custom_diffusion.py \ --pretrained_model_name_or_path="CompVis/stable-diffusion-v1-4" \ --output_dir=/content/output \ --concepts_list=/content/meta.json \ --with_prior_preservation --real_prior --prior_loss_weight=1.0 \ --resolution=512 \ --train_batch_size=1 \ --learning_rate=1e-5 \ --lr_warmup_steps=0 \ --max_train_steps=500 \ --num_class_images=200 \ --scale_lr --hflip \ --enable_xformers_memory_efficient_attention \ --modifier_token "<new1>+<new2>"

Logs

No response

System Info

Google collab
Python 3.10.12
diffusers Version: 0.21.0.dev0
clip-retrieval Version: 2.37.0

Who can help?

@sayakpaul @yiyixuxu @willi

@Sandeep-Narahari Sandeep-Narahari added the bug Something isn't working label Sep 4, 2023
@sayakpaul
Copy link
Member

Could you provide the Colab Notebook you're using for this?

@canberk17
Copy link
Contributor

@sayakpaul, I believe this is related to the issue discussed here: #4704 .@Sandeep-Narahari, could you try adding
--no_safe_serialization to your arguments and see if that'll do the trick?

@Sandeep-Narahari
Copy link
Author

Yeah correct got it , working now , Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants