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

Use other flux-based model files? #1116

Open
puppyapple opened this issue Nov 22, 2024 · 1 comment · May be fixed by #1117
Open

Use other flux-based model files? #1116

puppyapple opened this issue Nov 22, 2024 · 1 comment · May be fixed by #1117

Comments

@puppyapple
Copy link

Thanks for the great work!
Recently I see new models like shuttleai/shuttle-3-diffusion · Hugging Face, which is finetuned on flux-schnell.
Is there any way to use mflux on these models?
I tried with replacing the schnell safetensor's file with shuttle 3's in ~/.cache/huggingface/hub, and ran txt2image.py. This gave me the following errors:

ValueError: Received parameters not in model: model.diffusion_model.single_blocks.22.modulation.lin.bias model.diffusion_model.single_blocks.21.linear2.bias model.diffusion_model.single_blocks.5.modulation.lin.bias model.diffusion_model.double_blocks.14.img_attn.qkv.bias……
@angeloskath angeloskath linked a pull request Nov 23, 2024 that will close this issue
@angeloskath
Copy link
Member

Pushed a fix at #1117. It seems that the checkpoint is not quite compatible and I think the diffusers library loads the model from the transformers folder but the fix should be easier to use since you can just download using huggingface-cli and then export FLUX_SCNHELL=path/to/safetensors and use any model you want.

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

Successfully merging a pull request may close this issue.

2 participants