update document for more details

pull/39/head
butaixianran 2023-03-09 06:16:30 +08:00
parent 5737966389
commit c50fe40e1e
2 changed files with 34 additions and 6 deletions

View File

@ -21,7 +21,7 @@ Stable Diffusion Webui 扩展Civitai助手用于更轻松的管理和使用Ci
![](img/extension_tab.jpg) ![](img/extension_tab.jpg)
点击就会扫描所有模型生成SHA256码用于从civitai获取模型信息和预览图。 点击就会扫描所有模型生成SHA256码用于从civitai获取模型信息和预览图。**扫描需要很久,耐心等待**。
每个模型本扩展都会创建一个json文件用来保存从civitai得到的模型信息。这个文件会保存在模型同目录下名称为"模型名字.civitai.info"。 每个模型本扩展都会创建一个json文件用来保存从civitai得到的模型信息。这个文件会保存在模型同目录下名称为"模型名字.civitai.info"。
@ -47,10 +47,23 @@ Stable Diffusion Webui 扩展Civitai助手用于更轻松的管理和使用Ci
![](img/model_card.jpg) ![](img/model_card.jpg)
如果你刷新了卡片页面,这些额外的功能按钮就会消失。这时只要点击`Refresh Civitai Helper`,他们就会被重新添加到卡片上。 如果你没有看到这些额外的按钮,只要点击`Refresh Civitai Helper`,他们就会被重新添加到卡片上。
![](img/refresh_ch.jpg) ![](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! Enjoy!

View File

@ -30,6 +30,8 @@ Go to extension tab "Civitai Helper". There is a button called "Scan model".
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. 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. 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) ![](img/model_info_file.jpg)
@ -37,7 +39,7 @@ 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. 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 ### 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 ## Model Card
**(Use this only after you scanned your models!)** **(Use this only after you scanned your models!)**
@ -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) ![](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) ![](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! Enjoy!
@ -66,6 +78,9 @@ Enjoy!
* It cannot force a model link to Civitai by model ID for now. This will be added later. * It cannot force a model link to Civitai by model ID for now. This will be added later.
# Change Log # Change Log
## v1.2.1
* Add more error checking to work with different versions of SD webui.
## v1.2 ## v1.2
* Support customer model folder * Support customer model folder
* Support readable model info file * Support readable model info file