diff --git a/README.cn.md b/README.cn.md index 1626053..46de42b 100644 --- a/README.cn.md +++ b/README.cn.md @@ -21,7 +21,7 @@ Stable Diffusion Webui 扩展Civitai助手,用于更轻松的管理和使用Ci ![](img/extension_tab.jpg) -点击,就会扫描所有模型,生成SHA256码,用于从civitai获取模型信息和预览图。 +点击,就会扫描所有模型,生成SHA256码,用于从civitai获取模型信息和预览图。**扫描需要很久,耐心等待**。 每个模型,本扩展都会创建一个json文件,用来保存从civitai得到的模型信息。这个文件会保存在模型同目录下,名称为:"模型名字.civitai.info"。 @@ -47,10 +47,23 @@ Stable Diffusion Webui 扩展Civitai助手,用于更轻松的管理和使用Ci ![](img/model_card.jpg) -如果你刷新了卡片页面,这些额外的功能按钮就会消失。这时只要点击`Refresh Civitai Helper`,他们就会被重新添加到卡片上。 +如果你没有看到这些额外的按钮,只要点击`Refresh Civitai Helper`,他们就会被重新添加到卡片上。 ![](img/refresh_ch.jpg) +每次当Extra Network刷新,他都会删除掉额外的修改,我们的按钮就会消失。这时你就需要点击`Refresh Civitai Helper`把这些功能添加回去。 + +## 预览图 +Extra Network支持两种预览图命名:`model_name.png` 和 `model_name.preview.png`。其中,`model_name.png`优先级较高。 + +当优先级较高的预览图不存在,他就会自动使用`model_name.preview.png`。 + +这样,你自己创建的预览图 和 网络下载的预览图,能够同时存在,并优先使用你自己创建的。 + +## 关键词 +卡片上,添加关键词按钮,是添加从civitai预览图中得到的关键词,而不是你自己创建的图片的关键词。 + +civitai不是每个图片都有关键词,一个模型中,也不是所有预览图关键词都一样。所以这里是遍历所有civitai预览图信息,加载第一个有关键词的。 Enjoy! diff --git a/README.md b/README.md index 6ca4062..93ac0b5 100644 --- a/README.md +++ b/README.md @@ -24,12 +24,14 @@ Done. # How to Use ## Scanning Models -Go to extension tab "Civitai Helper". There is a button called "Scan model". +Go to extension tab "Civitai Helper". There is a button called "Scan model". ![](img/extension_tab.jpg) Click it and the extension will scan all your models to generate SHA256 hashes, using them to retreive model information and preview images from Civitai. +**Scanning takes time, just wait it finish** + For each model, it will create a json file to save all model info from Civitai. This model info file will be "Your_model_name.civitai.info" in your model folder. ![](img/model_info_file.jpg) @@ -37,10 +39,10 @@ For each model, it will create a json file to save all model info from Civitai. If a model info file already exists, it will be skipped. If a model cannot be found in Civitai, it will create an empty model info file, so the model won't be scanned twice. ### Adding New Models -When you have some new models, just click this button again, to get new model's information and preview images. +When you have some new models, just click scan button again, to get new model's information and preview images. It won't scan the same model twice. ## Model Card -**(Use this only after you scanned your models!)** +**(Use this only after you scanned your models!)** Open SD webui's build-in "Extra Network" tab, to show model cards. ![](img/extra_network.jpg) @@ -54,10 +56,20 @@ Move your mouse on to the bottom of a model card. It will show 4 icon buttons: ![](img/model_card.jpg) -If you click the Refresh Button of extra network, those additional buttons will be removed. You can click the `Refresh Civitai Helper` button to bring them back. +If these additional buttons are not there, click the `Refresh Civitai Helper` button to bring them back. ![](img/refresh_ch.jpg) +Everytime after Extra Network tab refreshed, it will remove all these additional buttons. So, you need to click `Refresh Civitai Helper` button to bring them back. +## Preview Image +Extra network uses both `model_file.png` and `model_file.preview.png` as preview image. But `model_file.png` has higher priority, because it is created by yourself. + +When you don't have the higher priority one, it will use the other automatically. + +## Prompt +When you click the button "Use prompt from preview image", it does not use the prompt from your own preview image. It uses the one from civitai's preview image. + +On civitai, a model's preview images may not has prompt. This extension will check this model's all civitai preview images' information and use the first one has prompt in it. Enjoy! @@ -66,6 +78,9 @@ Enjoy! * It cannot force a model link to Civitai by model ID for now. This will be added later. # Change Log +## v1.2.1 +* Add more error checking to work with different versions of SD webui. + ## v1.2 * Support customer model folder * Support readable model info file