Skip to content
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

Implementing Dreambooth weights #23

Open
TijmenJansen opened this issue Oct 27, 2022 · 2 comments
Open

Implementing Dreambooth weights #23

TijmenJansen opened this issue Oct 27, 2022 · 2 comments

Comments

@TijmenJansen
Copy link

Is it possible to use a trained dreambooth model into cross attention control?
I trained a model in Dreambooth-Stable-Diffusion on a new car and I have an image where I want to change the car to the one I trained in Dreambooth.
Changing 'model_path_diffusion' to the downloaded weights of Dreambooth does not seem to work, it does not generate the new car but something totaly different.

@bloc97
Copy link
Owner

bloc97 commented Oct 27, 2022

I am not sure about other deambooth implementations, but if you trained the model using the diffusers library, it should work fine.
https://github.com/huggingface/diffusers/tree/main/examples/dreambooth

You can look a bit in the code, maybe it is possible to load the weights from another implementation...

@TijmenJansen
Copy link
Author

Thanks for your reply. I am using ShivamShrirao's Dreambooth on colab (https://github.com/ShivamShrirao/diffusers/tree/main/examples/dreambooth). When downloading the model with AUTOMATIC1111 the model is converted via 'convert_diffusers_to_original_stable_diffusion.py'. Could this be the reason that, when loading the model into Cross Attention Control, it does not generate the trained object?

Does it then help to transform this model back with convert_original_stable_diffusion_to_diffusers.py ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants