Skip to content

Extension to access CivitAI via WebUI: download, delete, scan for updates, list installed models, assign tags, and boost downloads with multi-threading.

License

Notifications You must be signed in to change notification settings

BlafKing/sd-civitai-browser-plus

Repository files navigation

CivitAI Browser-05+


Features 🚀

Browse all models from CivitAI 🧩

  • Explore a wide range of models at your fingertips.

Check for updates and installed models 🔄

  • Easily spot new updates and identify already installed models while browsing.
  • Ability to scan all installed models for available updates.

Download any Model, any version, and any file 📥

  • Get the specific model version and file you need hassle-free.
  • Download queue to avoid waiting for finished downloads.

Automatically assign tags to installed models 🏷️

  • Assign tags by scanning all installed models for automatic use in image generation.

Quick Model Info Access 📊

  • A button for each model card in txt2img and img2img to load it into the extension.
  • A button under each image in model info to send its generation info to txt2img.

High-speed downloads with Aria2 🚄

  • Maximize your bandwidth for lightning-fast downloads.

Sleek and Intuitive User Interface 🖌️

  • Enjoy a clutter-free, user-friendly interface, designed to enhance your experience.

Actively maintained with feature requests welcome 🛠️

  • Feel free to send me your feature requests, and I'll do my best to implement them!

Known Issues 🐛

Unable to download / Frozen download:

If you're experiencing issues with broken or frozen downloads, there are two possible solutions you can try:

  1. Revert to the old download method: A solution could be to disable the "Download models using Aria2" feature.
    This will switch back to the old download method, which may resolve the issue.

    Revert to old download method

  2. Disable Async DNS for Aria2: If you're using a DNS manager program like PortMaster, try turning on the "Disable Async DNS for Aria2" option.

    Disable Async DNS for Aria2

These settings can be found under the "Settings" tab in Web-UI and then under the "CivitAI Browser+" tile.

How to install 📘

Automatic Installation:

HowTo

Manual Installation:

  1. Download the latest version from this site and unpack the .zip
    2023-09-25 13_06_31

  2. Navigate to your extensions folder (Your SD folder/webui/extensions)

  3. Place the unpacked folder inside the extensions folder

  4. Restart SD-WebUI

Preview 👀

CivitAI_Browser_+.mp4

Star History 🌟

Star History Chart

Changelog 📋

v3.6.0

  • Feature: Ability to set custom default sub folders.
  • Feature: Automatically fetches latest available Basemodels.
  • Bug fix: Lag fixed on SD-WebUI Forge/Gradio 4+, thanks to @BenjaminSymons and @channelcat!
  • Bug fix: Version ID has been suffixed to filename to avoid detecting different models as installed.
  • Bug fix: Filename comparing to detect installed models is no longer case sensitive.
  • Bug fix: CivitAI button on model cards correctly works again.
  • Bug fix: Correct image path now gets used when local images in HTML are used.
  • Bug fix: Any trailing or leading spaces get removed from model/version names now.

v3.5.4

  • Feature: Added support for DoRA (Requires SD-WebUI v1.9)
  • Bug fix: No longer rescans models that were previously not found on CivitAI
  • Bug fix: Fixed placement of HTML & api_info files when custom images location was used.
  • Bug fix: Fixed incorrect json naming.

v3.5.3

  • New Setting: Send model from the cards CivitAI button to the browser, instead of showing a popup.
  • Bug fix: No longer fetch HTML info when the file already exists and overwrite is off.
  • Bug fix: Fix NSFW models update functions.
  • Bug fix: Fixed CivitAI button on NSFW model cards.

v3.5.2

  • Bug fix: NSFW filtering fixed.

v3.5.1

  • Temp fix: Quick fix for the new NSFW system.
    • NSFW models may be returned when NSFW is disabled, this is an issue with the public CivitAI API.
    • Search results currently do not get influenced by the NSFW setting, also an issue with the API.
  • Bug fix: Better automatic coloring for white theme.

v3.5.0

  • Bug fix: Extension now works again with the latest CivitAI API version!
  • Cleanup: Re-wrote backend API handling code.

v3.4.3

  • Bug fix: Hotfix for a change in the public API which broke searching.
  • Bug fix: Fixed incorrect permission display on model page.

v3.4.2

  • Feature: Ability to set-up a custom proxy for API requests and downloads.
  • Feature: Use image API for prompt info, should speed up loading.
  • Feature: Optimized javascript code, improved webpage speed for some users.
  • New setting: Proxy settings to set-up custom proxy.
  • New setting: Toggle for saving description to model json file. (this displays description on the cards)
  • Bug fix: Broken default sub folder option fixed #217

v3.4.1

  • Feature: Local images now work in HTML files as preview. (credit: mx)
  • Feature: Updated available base models.
  • Bug fix: Fixed prompt info and model selection after CivitAI API update.
  • Bug fix: Fixed "/" missing from default path/sub-folder.

v3.4.0

  • Feature: (BETA) Download queue! rearrange download order and remove models from queue
    • Will likely contain bugs, still not completely finished.
  • Feature: Customizable sub folder insertion options, choose what sub folder options you want!
  • New setting: Toggle per prompt example image buttons
  • New setting: Insert sub folder options
  • Bug fix: Add to queue fixed, now properly gets enabled.
  • Bug fix: Symlinks now get correctly recognized and used.
  • Bug fix: No longer creates accidental sub folder when bulk downloading.

v3.3.1

  • Feature: Ability to send individual parts of image generation data to txt2img.
  • Feature: Added compatibility for stable-diffusion-webui-forge fork.
  • New setting: Use local images in the HTML
    • Does not work in combination with the "Use local HTML file for model info" option!
  • New setting: Store the HTML and api_info in the custom images location
  • Bug fix: New HTML model info now scales with width so it should always fit.
  • Bug fix: Various bug fixes to the "Update model info & tags" function.
  • Bug fix: Auto save all images now uses correctly uses custom image path if set.
  • Bug fix: "Save model info" button should no longer return errors.
  • Bug fix: Old download method (non Aria2) should now work again.

v3.3.0

  • Feature: New txt2img and img2img model info overlay on CivitAI button press.
  • Feature: Base Model as sub folder option.
  • Feature: Ability to multi-download to selected folder.
  • Feature: Use the same folder as older versions when updating using multi-download.
  • Feature: txt2img and img2img CivitAI buttons can use local HTML file, toggle in settings.
  • Note: Save images no longer saves .html and API info, save model info does this instead now.
  • New setting: Save API info of model when saving model info.
  • New setting: Automatically save all images after download.
  • New setting: Use local HTML file for model info.
  • Bug fix: better JSON decode, now forces UTF-8
  • Bug fix: Now uses the proper default file when using multi-download
  • Bug fix: Hide early access models fix, now works when published_at does not exist in API.
  • Bug fix: Fix attempt for queue clearing upon download fail.

v3.2.5

  • Bug fix: Removed default API Key since it gets blocked after many downloads.
    • Because of this it's now required for some downloads to use a personal CivitAI key, this can be set in the the settings tab of SD-WebUI under the CivitAI Browser+ tab.
  • Bug fix: Fixed bug when selecting a model from txt2img/img2img that doesn't exist on CivitAI.
  • Bug fix: Changed model selection to Model ID instead of model name
    • This previously caused issues when 2 models were named the same.
  • Bug fix: Fixed an issue where the default file was not properly used by default.
  • Bug fix: Fixed some tiles not being selectable due to having "'" in its title
  • Bug fix: Now automatically removes residual Aria2 files.

v3.2.4

  • Bug fix: Fix version detection for non standard SD-WebUI versions.
  • Bug fix: Retry to fetch ModelID if previously not found in update functions.
  • Bug fix: Style fix for when the Lobe theme is used in SD-WebUI
  • Bug fix: Better required packages import error catching.
  • Bug fix: Fixed CivitAI button scaling in txt2img and img2img tabs.
  • Bug fix: Added ability to handle models that have no hashes saved.

v3.2.3

  • Bug fix: Generate hash toggle in update models was inverted (silly mistake, sry bout that)
  • Bug fix: Better error detection if no model IDs were retrieved during update functions.
  • Bug fix: Better error handling if a local model does not exist on CivitAI

v3.2.2

  • Bug fix: Fixed an api_response issue in the update model functions
  • Bug fix: Reverted automatically retrieving base models to fix startup issues
  • Bug fix: Better error description if a model no longer exists on CivitAI
  • Bug fix: Primary file is now used as default file.
  • Bug fix: Search after updating models no longer returns errors.

v3.2.1

  • Feature: Extension now automatically retrieves latest base models from CivitAI.
  • Bug fix: Hotfix for functionality with SD.Next

v3.2.0

  • Feature: A toggle for One-Time hash generation for externally downloaded models.
  • Feature: Updated extension settings layout for SD-WebUI 1.7.0 and higher.
  • Bug fix: Set default value of Lora & LoCON combination based on SD-WebUI version.
  • Bug fix: LORA models with embedding files now get placed inside embeddings folder.
  • Bug fix: Better tile count handling to avoid issues with incorrect tile count.
  • Bug fix: Better settings saving/loading to prevent writing issues.

v3.1.1

  • Bug fix: Early Access models now get correctly hidden/detected.
  • Bug fix: Better timeout/offline server detection for options in "Update Models" tab.
  • Bug fix: Better error detection if required packages were not installed/imported.
  • Bug fix: Download button now displays as "Add to queue" during active download.

v3.1.0

  • Feature: Send to txt2img, Send any image in the model info to txt2img.
  • Feature: Added new Base model filters:
    • SD 1.5 LCM, SDXL 1.0 LCM, SDXL Distilled, SDXL Turbo, SVD, SVD XT
  • Feature: Hide installed models filter toggle.
  • Feature: Better display of permissions and tags in model info.
  • New setting: Append sub folders to custom image path.
  • New setting: Toggle gif/video playback, Disable if videos are causing high CPU usage.
  • Bug fix: Better handling if hash is not found.

v3.0

  • Feature: Download queue! Ability to add downloads to a queue. (Finally!)
  • Feature: Checkboxes to download multiple models at once.
    • This will automatically use the first version and first file of the selected model(s).
    • Will use the default sub folders per content type defined in sub folder settings.
  • Feature: "Select all" button to select all downloadable models at once.
  • Feature: "Open on CivitAI" button when viewing a models metadata in txt2img or img2img.
    • Will only display if the model's info has been saved to the .json after v3.0
  • Feature: Ability to rename model filename
    • Note that it's not recommended to change the filename since some checks rely on it.
  • Bug fix: Fixed display of saved .html files.
  • Bug fix: Removed potential illegal characters from file name/path name.
  • Bug fix: Fixed case sensitive sorting of sub folders.

v2.1.0

  • Feature: "Overwrite any existing previews, tags or descriptions" Toggle in Update tab.
  • Feature: Added content type "All" to model scanning to select all content types.

v2.0.1

  • Bug fix: Folders starting with "." now no longer show sub folders.
  • Bug fix: Added headers to simulate browser request. (May fix issues for users from Russia)

v2.0

  • Feature: New button on each model card in txt2img and img2img to view it in the extension.
Preview

ezgif-3-b1f0de4dd2

  • Feature: NSFW toggle now properly impacts search results.
  • Feature: Ability to set [\Model Name] & [\Model Name\Version Name] as default sub folders.
  • New setting: Hide sub folders that start with a '.'
  • Bug fix: Preview HTML is now emptied when loading a new page.
  • Bug fix: Buttons now correctly display when loading new page.
  • Bug fix: Fixed compatibility with SD.Next. (again)
  • Bug fix: Emptied tags, base model, and filename upon loading new page.
  • Bug fix: Filter change detection fixed

v1.16

  • Feature: Ability to download/update model preview images in Update Models tab.
  • Feature: "Update model tags" changed to "Update model info & tags".
    • The option now saves tags, description and base model version.
    • This also applies to the browser, saved tags is changed to save model info.
  • Bug fix: Archived models are now hidden since they cannot be used.

v1.15.2

  • New setting: Custom save images location
  • New setting: Default sub folders
    • Any sub folders you have will be able to be selected as default, per content type.
    • If a content type doesn't appear, then it means there are no subfolders in that type.
  • Bug fix: Unreleased models caused a crash, now hidden by default since they can't be used.

v1.15.1

  • New setting: Show console logs during update scanning.
  • Bug fix: Scan for update no longer prints incorrect info about outdated models.
  • Bug fix: Removed bad logic which triggered the same function multiple times.
  • Cleanup: Optimized functions and improved the speed of selecting models.

v1.15

  • Feature: Filter option to show favorited models. (requires personal API key)
  • Feature: Back to top button when viewing model details.
  • New setting: Page navigation as header. (keeps page navigation always visible at the top)
  • Bug fix: Aria2 now restarts when UI is reloaded.
  • Bug fix: SHA256 error fixed if .json files don't contain it.
  • Bug fix: Cleaned up javascript code.

v1.14.7

  • New setting: Hide early access models (EA models are only downloadable by supporters)
  • New setting: Personal CivitAI API key (Text field to insert personal API key)
    • Useful for CivitAI supporters, you can use your own API Key to allow downloading Early Access models
  • Bug fix: Extension now works with no gradio queue flag.
  • Bug fix: Auto disable Aria2 on MacOS due to incompatibility.
  • Bug fix: Now properly works on SD.Next again.
  • Bug fix: Download progression and cancelling is no longer broken on old download method.
  • Bug fix: Extension now correctly downloads models where it is required to be logged in.
  • Bug fix: Extension no longer attempts to install already installed requirements.

v1.14.6

  • Bug fix: Removed pre-load of default page, caused issues for some users.
  • Bug fix: Fixed internal model naming, caused issues when model names included '
  • Bug fix: Different host for .svg icons, caused issues with MalwareBytes.
  • Bug fix: Preview saving was broken due to passing the wrong file path.

v1.14.5

  • Feature: Base Model filter now impacts search results.
  • Feature: Ability to input model URL into search bar to find corresponding model.
  • Bug fix: Adetailer models now get placed in the correct folder

v1.14.4

  • Bug fix: Page slider broke the Next Page button when loaded from "Update Models".
  • Bug fix: "Save settings as default" button inserted broken .json data.
  • Bug fix: Triggering "Scan for available updates" twice resulted in an error.

v1.14.3

  • Bug fix: LORA content type was broken when "Treat LoCon as LORA" was turned on.

v1.14.2

  • Feature: Custom page handling when scanning models.
  • Bug fix: Model scan feature now works for large model count (+900)
  • Bug fix: Better broken .json error handling

v1.14.1

  • Bug fix: Gifs did not display properly.
  • Bug fix: Video's no longer save as preview since they cannot be used.
  • Bug fix: Filter window was not hidden by default.

v1.14

  • Feature: Redesign of UI.
  • Feature: New dropdown with filter settings.
  • Feature: Button to save current filter settings as default. (requires restart)
  • Feature: Tag box can now be typed in to save custom tags.
  • Feature: Delete function removes any unpacked files.

v1.13

  • Feature: Updated available content types:
    • Upscaler
    • MotionModule
    • Wildcards
    • Workflows
    • Other
  • Feature: Videos can now also be displayed on preview cards and in the model info.
  • Feature: Automatically scans upscaler type by looking through model's description.
  • Feature: Automatically identify correct folder for wildcards based on extension.
  • Bug fix: Version ID got saved instead of correct Model ID after download.

v1.12.5

  • Bug fix: [Installed] tag was only assigned to latest installed version.
  • Bug fix: Folder location didn't update when selecting different version/file.
  • Bug fix: Version scanning didn't properly scan sha256 in uppercase.

v1.12.4

  • Feature: You can now refresh by pressing Ctrl+Enter and Alt+Enter.
  • Bug fix: Auto unpack feature was unpacking unintended archives, now only unpacks .zip.

v1.12.3

  • New setting: Option to toggle automatically unpacking .zip models.
  • Bug fix: Error wasn't catched when file path was incorrect.

v1.12.2

  • Feature: Able to download multiple files from each version.
  • Bug fix: Models did not get deleted properly when in nested folders.
  • Bug fix: Wrong sha256 was being saved after downloading.
  • Bug fix: Wrong default folder was used when installed model got selected.

v1.12.1

  • Feature: File deletion now uses both SHA256 and file name to detect correct file.
  • New setting: Option to toggle automatically inserting 2 default sub folders.
  • New setting: Option to toggle installing LoCON's in LORA folder.
  • Bug fix: Default file was incorrect when selecting a model.
  • Bug fix: Next Page caused an error when changing content type.

v1.12

  • Feature: Ability to load all selected installed models into browser in Update Models tab.
  • Feature: Installed/outdated models check is now done using SHA256 + file name.
  • Feature: Ability to select multiple content Types when searching and scanning.
  • Feature: Greatly improved speed of model scanning if model ID is saved in .json

v1.11.2

  • Feature: Redesign of model page by ManOrMonster

  • Model page changes (#33)
    • Redesigned the look of the model page.
    • Added link to model page on CivitAI. Click on model name to open.
    • Added link to uploader/creator page on CivitAI. Click creator name to open.
    • Added CivitAI avatar display.
    • Separate description section.
    • First sample image is marked with data attribute and downloaded as preview image instead of grabbing first in model HTML. This guarantees that the first sample image (not avatar or image in description) is used when downloading the model.
    • Sample images are marked with data attribute so that only they are downloaded when using "Save Images" (no description images or avatar).
    • Removed trained tags from info since they are displayed above.
    • Each sample image has its own section.
    • Sample images zoom in when clicked, zoom out when clicking anywhere.
    • Forced width is removed from sample image URLs so that nice big images can be viewed.
    • Metadata is arranged so that the most commonly used data is at the top, no more searching for prompts.
    • Extra metadata is in accordion labeled "More details...". This is especially useful to hide insanely large ComfyUI JSON.

v1.11.1

  • Feature: Error detection during Aria2 downloads.
  • Bug fix: Avoid starting Aria2 RPC multiple times with better port check.
  • Bug fix: Fixed dynamic tile status updates after deleting/downloading.

v1.11

  • Feature: Ability to scan all installed models for available updates.
  • Feature: Model ID and sha256 get saved to .json after scanning or downloading a model.
  • Bug fix: Fixed crash when base model is not found.
  • Bug fix: No longer overwrite sha256 and model ID in existing .json.

v1.10.1

  • Bug fix: Fixed pathing for Unix systems
  • Bug fix: Extra checks to prevent deleting unintentional files.
  • Feature: Models get moved to trash instead of fully deleted.

v1.10

  • Feature: Update tags for all installed models!
  • Feature: Tabs for Browsing and updating Tags.
  • Feature: Buttons to select which folders to update tags in.

v1.9.4

  • Feature: Added Civit AI settings tab
    • New setting: Disable downloading with Aria2. (will use old download method instead)
    • New setting: Disable using Async DNS. (can fix issues for some users who use DNS managing programs)
    • New setting: Show Aria2 logs in the CMD.
    • New setting: Set the amount of connections when downloading a model with Aria2.
      (The optimal connection count is different per user, try to find the lowest option which still gives you full bandwidth speed)

v1.9.3

  • Feature: Included Motrix Aria2 version.
  • Feature: Max connections per server set to 64 and split file set 64.
  • Feature: Aria2 is now shipped with this extension for Linux as well.

v1.9.2

  • Cleanup: Split up script into multiple files for improved oversight/readability.
  • Cleanup: Centered model icons

v1.9.1

  • Bug fix: Added back old download function if aria2 fails.

v1.9

  • Feature: Faster downloads by using Aria2.
  • Feature: More info about current download: Speed, ETA, File Size and % completion.

v1.8.1

  • Feature: Sub Folder list now contains 2 default options: /{Model name} & /{Model name}/{Version name}

v1.8

  • Feature: Ability to download different file types per version.
  • Feature: NSFW Toggle is now dynamic.
  • Feature: Version list now dynamically updates after download.
  • Cleanup: Rearranged/Resized UI elements.
  • Bug fix: Downloading models now uses file ID instead of names.
  • Bug fix: NSFW Toggle no longer hides images tagged as "Soft".
  • Bug fix: Fixed each model load running twice.

v1.7.2

  • Bug fix: Download button did not get re-enabled properly.
  • Bug fix: Tile status did not get updated properly when download failed.

v1.7.1

  • Feature: Base Model filtering dims tiles instead of hiding.
  • Bug fix: NSFW Blur increases with tile size.
  • Bug fix: Dynamic tile status after installation & deletion now correctly detects other versions.

v1.7

  • Feature: Introduced seperate download progress bar, browse while downloading.
  • Feature: no more force refresh after installing, cancelling and deleting.
  • Feature: Added toggle to sort Tiles by date.
  • Feature: Dynamic changing of tile borders after installation & deletion.
  • Removal: 'Auto delete old version' removed since it relied on a reload.

v1.6

  • Bug fix: Page count is now always correclty read when refreshing.
    (You can fill in the page number you'd like to visit and press refresh to go to that page)
  • Feature: 'Filter Base Model' to dynamically hide any unselected Base models.
    (Please note: This does not impact search results, since the CivitAI API does not yet support this)

v1.5

  • Feature: Slider to change tile size.
  • Feature: Download Folder textbox which can be used to define a custom download path.
  • Feature: Sub Folder Dropdown to select any available subfolder(s) as download location.
  • Feature: Display a timed out message instead of an error icon.
  • Bug fix: Nested files can now be detected as installed or outdated.
  • Bug fix: Auto selects corresponding folder of any installed models.
  • Bug fix: Better cancellation logic to prevent downloads from continuing.

v1.4

  • Feature: Download progress bar is now on web page instead of CMD.
  • Feature: Added Cancel and Delete buttons.
  • Feature: Download button will now change according to circumstances:
    • Cancel button if there's a current download.
    • Delete button if the selected version is installed.
  • Cleanup: Better margin fixes with theme detection.
  • Bug fix: Delete option now also removes .json files.
  • Bug fix: Buttons are now disabled during download. (except cancel button)

v1.3.1

  • Bug fix: Fixed tag saving bugs/oversights.
  • Bug fix: Trained tags display now do not include the model itself.

v1.3

  • Feature: 'Save Tags' button saves tags to a .json file which gets used in image creaton.
    (If a LORA with saved tags is used it will automatically input all tags into the txt box in image creation)
  • Feature: 'Save tags after download' toggle to automatically save .json tags.
  • Cleanup: Removed "Get model info" button.
  • Cleanup: Removed download link box.
  • Cleanup: Removed "No" from search options.
  • Cleanup: Added border radius to cards.
  • Cleanup: Improved padding based on if Lobe theme is being used.

v1.2

  • Feature: Automatically saves preview image when downloading a model.
  • Feature: Added [installed] text suffix for any versions that are installed in the 'Version' tab.
  • Cleanup: Changed 'Model Filename' from a dropbox to a textbox.
  • Cleanup: Made bottom textboxes non typeable.
  • Cleanup: Disabled bottom buttons when no model is selected.
  • Bug fix: Margin error on the latest tile.
  • Bug fix: Version checking is now case sensitive.
  • Bug fix: Default verison in version tab shows installed version.

v1.1

  • Feature: Dropdown box which can filter by time period.
  • Cleanup: 'Content type' changed from buttons to a dropdown box.
  • Bug fix: Fixed tiles not reloading when already pressed.

v1.0

  • Feature: 'Refresh' now reloads the current page unless any options have been changed.
  • Feature: Made the page refresh after a download and made it load during one.
  • Feature: Orange glow for any outdated installed packages.
  • Feature: 'Delete old version after download' option.
  • Feature: Ability to manually fill in a page number to load the corresponding page.
  • Cleanup: Removed new folder option.
  • Cleanup: Made the glow around frames always visible without hovering.
  • Pulled fork from: SignalFlagZ's Fork v1.1.0

About

Extension to access CivitAI via WebUI: download, delete, scan for updates, list installed models, assign tags, and boost downloads with multi-threading.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project