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

[bug]: Unable to determine model type for Flux LyCORIS models #7661

Open
1 task done
mld2443 opened this issue Feb 20, 2025 · 3 comments
Open
1 task done

[bug]: Unable to determine model type for Flux LyCORIS models #7661

mld2443 opened this issue Feb 20, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@mld2443
Copy link

mld2443 commented Feb 20, 2025

Is there an existing issue for this problem?

  • I have searched the existing issues

Operating system

Linux

GPU vendor

Nvidia (CUDA)

GPU model

rtx 3080

GPU VRAM

10

Version number

5.6.2

Browser

Firefox 135

Python dependencies

No response

What happened

Invoke gives a "InvalidModelConfigException: Unable to determine model type" Error when trying to add a LyCORIS model for Flux.

What you expected to happen

I expected it to add the model.

How to reproduce the problem

Try to add a Flux LyCORIS model. Here are a few that did not work for me:
https://civitai.com/models/674729/1930s-rubber-hose-cartoon-style-cuphead-style-flux
https://civitai.com/models/684044/90s-sitcom-style-flux
https://civitai.com/models/708309/ukiyoflow

Additional context

Strangely, here is the only one I've found that has worked for me:
https://civitai.com/models/264261/rollercoaster-tycoon-styled-images

I suspect these models are trained differently.

Discord username

No response

@mld2443 mld2443 added the bug Something isn't working label Feb 20, 2025
@vrubzov1957
Copy link

vrubzov1957 commented Feb 20, 2025

I had similar problem but for Lokr models, when used NF4 Flux base model (but when try invoke generation, not when addinf). May be source of problem same (or may be not) #6998

And also when install with some Lora models I have same problem, examples lora with problems:

Error: Unable determine model type

Error: Unknown LoRA type

@mld2443
Copy link
Author

mld2443 commented Feb 21, 2025

I looked for LoKr in the open issues, looks like I missed it as it is closed and the fix appears to have been merged in already.

Just to make sure, I grabbed the 5.7.0rc1 before trying again.

Perhaps there is more work to do, as indeed some of the models that give me the "InvalidModelConfigException" mention being LoKr, such as these:
https://civitai.com/models/683222/spirited-away-ghibli-style-for-flux
https://civitai.com/models/705358/cats-who-smoke

Meanwhile, this LoHa works fine for me:
https://civitai.com/models/50940?modelVersionId=826402

@mld2443
Copy link
Author

mld2443 commented Feb 24, 2025

I've parsed the metadata, and for each LyCORIS I've found that does not work, it seems the keys are all of the form:

lycoris_single_transformer_blocks_XXXXX.alpha
lycoris_single_transformer_blocks_XXXXX.lokr_w1
lycoris_single_transformer_blocks_XXXXX.lokr_w2
...
lycoris_transformer_blocks_XXXXX.alpha
lycoris_transformer_blocks_XXXXX.lokr_w1
lycoris_transformer_blocks_XXXXX.lokr_w2

I thought to compare them to the keys inside one of my SDXL LoKr, but they seem cut from a different cloth entirely. I have a hunch that those models might be generated on tensor.art and reuploaded (except the one with smoking cats which links to huggingface and has more details on the training).

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

2 participants