-
Notifications
You must be signed in to change notification settings - Fork 141
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
KeyError in visualize attn maps #76
Comments
Hi, can you mention the exact training command used to train the model .bin? Thanks. |
Hi, this is my test train code: accelerate launch train_custom_diffusion.py \
--pretrained_model_name_or_path=CompVis/stable-diffusion-v1-4 \
--instance_data_dir=/content/drive/MyDrive/diffusion/class_woman/young_woman \
--output_dir=/content/drive/MyDrive/diffusion/train_logs/young_woman \
--class_data_dir=/content/drive/MyDrive/diffusion/real_woman/ \
--with_prior_preservation --real_prior --prior_loss_weight=1.0 \
--instance_prompt="photo of a <young> woman" \
--class_prompt='woman' --num_class_images 150 \
--resolution=512 \
--train_batch_size=2 \
--learning_rate=5e-6 \
--lr_warmup_steps=500 \
--max_train_steps=2000 \
--scale_lr --hflip \
--modifier_token "<young>" \
--validation_prompt="photo of a <young> woman" \
--no_safe_serialization \
--enable_xformers_memory_efficient_attention \
--report_to="wandb"` |
Hi if you are using this to train the model, you would need to update the model load command as below:
|
Hi, I used what you mentioned to load new text embeddings, e.g. <woman1>. prompts = [prompt]
controller = AttentionStore()
image_inv, x_t = run_and_display(prompts, controller, run_baseline=True) It loses the information of <woman1>. image = ldm_stable(
'A photo of <woman1>',
num_inference_steps=50,
guidance_scale=6.0,
eta=1.0,
).images[0] It returns the learned information of <woman1>. |
I am using the notebook given #54
When I run the loading part:
Returns this:
How can I solve this?
The text was updated successfully, but these errors were encountered: