sunnyark / civitai-shortcut

140 stars 13 forks source link

Feature Request: Generate modelname.json of WebUI 1.5.x #67

Open JunJi-JiaYue opened 1 year ago

JunJi-JiaYue commented 1 year ago

Since WebUI 1.5.0, a file modelname.json can be placed in the same location as the model to manage preferred weight, activation text, etc. I think it would be great if civitai-shortcut created this with CivitAI information.

For example, it could look like:

{
    "description": "description of CivitAI page",
    "sd version": "1",
    "activation text": "blah blah",
    "preferred weight": 0,
    "notes": "https://civitai.com/models/hogehoge"
}
sunnyark commented 1 year ago

It seems that the extended LoRa metadata editor feature has been added to SDUI. Thanks to your information, I've become aware of it. I should explore how to utilize it effectively.

cratom4 commented 1 year ago

Is there easy way to create this json file for all the already downloaded models?

sunnyark commented 1 year ago

@cratom4 Currently, it's implemented to generate only during the download process. There seems to be a need to create this functionality. However, since it will be a one-time function... It seems necessary to think about how to proceed.

sunnyark commented 1 year ago

@cratom4 If you update, you can use it at Assistance->Scan and Update Models->Update Downloaded Model.

cratom4 commented 1 year ago

It worked like a charm, thanks for quick update!