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

add modelVersionId to model json #279

Merged
merged 2 commits into from
May 5, 2024
Merged

add modelVersionId to model json #279

merged 2 commits into from
May 5, 2024

Conversation

anonstash
Copy link
Contributor

@anonstash anonstash commented May 4, 2024

I'm working on a change to stable-diffusion-webui to automatically parse the model weights from the "Civitai resources" json when using buttons such as "Send to txt2img". An example of civitai resources json:

Civitai resources: [{"type":"checkpoint","modelVersionId":290640},{"type":"ImageJobNetworkParams { Strength = 0.4, TriggerWord = , Type = lora }","weight":0.4,"modelVersionId":135867},
{"type":"embed","modelVersionId":250708}]

Note the desired Loras are specified by modelVersionId. Currently only the modelId is saved to the model json by the extension, so this change just adds the modelVersionId as well.

@BlafKing BlafKing merged commit 2793bcd into BlafKing:main May 5, 2024
@BlafKing
Copy link
Owner

BlafKing commented May 5, 2024

Looks good! thanks for making a commit, merged! :)

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 this pull request may close these issues.

2 participants