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
support civitai API Key. Check github document "Civitai API Key" section for detail.
Based on civitai's new rules, you must set an API Key to download some models.
FAQ
Comments (15)
Works great, thanks.
Most up to date an working version? At least for me it works great.
https://github.com/zixaphir/Stable-Diffusion-Webui-Civitai-Helper
any update from 2.0?
buttons not working on this fork : https://github.com/lllyasviel/stable-diffusion-webui-forge
Please fix it PLEASEEEEEEEEEEEEEEEEEEE
Yeah, scanning still works but the buttons aren't showing up for me. I suspect it has something to do with the tree view Forge is using.
As an update, these wont work in SD Forge, the authors of this extension MUST update it because there is no way around this yet.
Not a universal bug-fix, but it works in Forge as of 2024-03-16:
A) Go into the extension's folder
B) Open javascript/civitai_helper.js in a text editor.
C) Go to line 1120
D) Replace 'if (sd_version >= "1.8.0"){' with 'if (sd_version.search("1.8.0")>=-1){'
Reload the UI page and it should work for now.
Or you try to DL this from the github-page, which seems to be slighlty newer and take Forge into account: https://github.com/butaixianran/Stable-Diffusion-Webui-Civitai-Helper/tree/main
@ragnaroook聽That's the one I discovered and I can confirm it works.
the buttons on zixaphir fork is not working again on the new dev branch with the new interface. Anyone know a fix?
I know it鈥檚 probably impossible, but is there any way to make this work on mobile?
1.There should be a feature where with extension in sd a1111 a user could also download other users images with tags like on civtai website when you scroll down the checkpoint page or lora page , you could see other user images and tags and generation methods. a user could pick and choose which one he wants to download
2. anyone can download the checkpoint or loras at the moment but there is no option to update existing one with new one
3.if a user has more then 2 checkpoint from same creator like model v2 and v2lcm civtai browser+ merge the tags and details . it work based on url not as version no
I love this extension for downloading the thumbnails, but is there a way to make it download the trigger words? THAT is what is most needed. I have a ridiculous amount of models I downloaded before realizing I needed trigger words for some. Now i have 500gb worth of models I'm manually looking up triggers for as needed. So have been deleted from Civita since, I'd like to download the rest in bulk before any more become inaccessible. Anybody have any Ideas?
