Now, we finally have a Civitai SD webui extension!!
Update:
v1.10.2 is on github, which support SD webui v1.8.x.
Some models request login to civitai to download. So you need to set a civitai API Key on Civitai, then fill that API Key into this extension's setting page. Check document on github (Civitai API Key Section) for detail.
Civitai Helper
Stable Diffusion Webui Extension for Civitai, to help you handle models much more easily.
The official SD extension for civitai takes months for developing and still has no good output. So, I developed this Unofficial one.
Github project:
https://github.com/butaixianran/Stable-Diffusion-Webui-Civitai-Helper
(Github page has better document)
Feature
Scan all models to download model information and preview images from Civitai.
Link local model to a civitai model by a civitai url
Download a model(with info+preview) by Civitai Url into SD's model folder or subfolder.
Downloading can resume at break-point.
Checking all your local model's new version from Civitai
Download a new version directly into SD model folder (with info+preview)
Modified Built-in "Extra Network" cards, to add the following buttons on each card:
🌐: Open this model's Civitai url in a new tab
💡: Add this model's trigger words to prompt
🏷: Use this model's preview image's prompt
Install
Everytime you install or update this extension, you need to shutdown SD Webui and Relaunch it. Just "Reload UI" won't work.
How to use
First of all, Update Your SD Webui to latest version!
This extension need to get extra network's cards id. Which is added since 2023-02-06. If your SD webui is an earlier version, you need to update it!
After install, Go to extension tab "Civitai Helper". There is a button called "Scan Model".
Click it, extension will scan all your models to generate SHA256 hash, and use this hash, to get model information and preview images from civitai.
After scanning finished,
Go to SD webui's build-in "Extra Network" tab, and click "Refresh Civitai Helper" button, to show all addtional buttons.
Everytime extra network tab refreshed, it will remove all additional buttons of this extension. You need to click Refresh Civitai Helper button to bring them back.
Move your mouse on to the Top of a model card. It will show 3 additional icon buttons:
🌐: Open this model's Civitai url in a new tab
💡: Add this model's trigger words to prompt
🏷: Use this model's preview image's prompt
Description
Bring back this addon's green fresh button to SD webui v1.8.x
FAQ
Comments (17)
RIGHT-CLICK menu does not work after updating to WEBUI1.8 and helper1.10 white the buttons still works well, anyone know where is wrong or if this function removed?
It's nice when it works, but after a week it stopped working. Model info and preview images stay blank after the scan.
Seems bugged lately. I have an archived Ti model for Nathalie Emmanuel and when it's in my embedding folder I get an error and it won't continue scanning. The model in question works fine. I think the issue is that it is an archived model here on Civitai and the current version of CH isn't programed with an "if" for that.
Unfortunately, it doesn't work. Just errors out when scanning.
Unfortunately, it doesn't work. Only the scan works correctly but the refreash icon is missing
I have multiple problems.
* There is no "refresh" button described in the install instructions.
* After the initial scan I lost all of my own checkpoint previews. I was using the zixaphir branch that allowed custom previews. I can't find a way to make them work with this branch.
* After scanning for new versions, the download into SD often fails. Console reports "missing API key", but I do have one.
I appreciate you creating this, but -- with all due respect -- your instructions don't make any sense.
OK, I figured it out: The extension works fine, BUT! You have to install the Dynamic Prompts extension first, before anything else.
I've been using this thing since the first version, it's a great little helper! Lately I've been using Forge instead of Automatic1111 cause it's much faster and lighter to use. Sadly Civitai helper works only partially while using Forge. LoRAs section it's working normally but at embeddings and Cps section the refresh button isn't showed at all? Do you have a clue what might cause that?
With latest automatic1111 version: v1.10.1 I no longer have the button to refresh which makes the other buttons appear
This was working great earlier, but recently it just stopped working. I've tried version 1.8.10, version 1.10.2, and version 1.11.0 (from the github link). All of them return an error:
v1.10.2 / v1.11 - "TypeError: cannot pickle '_thread.lock' object"
v1.8.1 - "AttributeError: 'Column' object has no attribute 'update'"
Not sure what to do about it or why it happened. I'm using A1111 Forge and didn't change anything before it started to error. (It may have updated itself, that's the only thing I can imagine could have caused it)
version: f1.0.2v1.10.1-previous-151-gb7878058 • python: 3.10.6 • torch: 2.1.2+cu121 • xformers: N/A • gradio: 4.40.0 • checkpoint: 49115e975a
Unfortunately, the refresh button doesn't appear anymore...
Original A1111 v1.10.1 master
i miss this last part also "After scanning finished,
Go to SD webui's build-in "Extra Network" tab, and click "Refresh Civitai Helper" button, to show all addtional buttons."
Every time I’ve run it I get an error during the scan and I can’t cancel the scan. I just end up with my Lora and model folders filled with partially downloaded duplicates of every file.
Is there any way to force it to download NSFW images for the preview image?