Git Product home page Git Product logo

blafking / sd-civitai-browser-plus Goto Github PK

View Code? Open in Web Editor NEW
260.0 6.0 42.0 13.23 MB

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

License: GNU Affero General Public License v3.0

Python 76.80% JavaScript 14.88% CSS 8.31%
ai automatic1111 civitai civitai-api extension sd-webui

sd-civitai-browser-plus's Introduction

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 it's 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.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 it's 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 video's are taking 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

sd-civitai-browser-plus's People

Contributors

anonstash avatar blafking avatar hakaserver avatar james-willer avatar manormonster avatar mx avatar samadpls avatar somnectar avatar sonyahon avatar thetrebor avatar umag avatar vetchems avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

sd-civitai-browser-plus's Issues

[BUG] Downloading

Describe the bug
All models, loras etc. not downloading

To Reproduce
Steps to reproduce the behavior:

  1. Download any model
  2. See nothing happening

Expected behavior
Model downloading? I think old download method worked fine

Screenshots
image

Additional context

  • Extension version: 1.9.3
  • OS: (Windows)
  • SD version: A1111, Latest version
  • Python: 3.10.8

[Feature Request] Download to Directory Automatically

Would it be possible to have the 'destination folder' have a dynamic naming? Basically I like to keep the folder cleaned up so if i move files out that I'm not using their named in a way that makes sense to me.

An example would be: [https://civitai.com/models/134643/blacklight-makeup-sdxl-lora]

blacklight-makeup-sdxl-lora-134643

I just use the directory name from the website and then append the model number because sometimes there are multiple releases of the same lora and i like to keep them separate.

Feature Request: Date Display

Issue: While browsing by Newest on a selection other than "Today", it would be helpful to know when models were posted.

Solution: A divider between thumbnail rows that displays the current date of all thumbnails in the following rows. For instance, browsing by "Newest" and by "Month", every thumbnail that was posted on 8-28-2023 would be grouped together under a divider that says "8-28-2023--------------------------------------------" or something similar. Then the next day's thumbnails would be displayed under a similar divider, and so on.

item["createdAt"]

[Feature Request] Show Current Models

Would it be possible to show the current models installed so that you can search for them based on what ever hash they have. Currently you can use the V2 hash to search using your addon, it would be very convient to show the list of current files and search for the data for them. I only ask this because i've downloaded a lot of lora's from various sources that i have no idea what they do (yes im a bit of a horder) and been hashing and searching via this addon to find out their info then packaging them into zips. If the model is ever deleted, which happens a lot, i have the html info and images in my zip.

Also thanks for adding that feature to goto a directory. :)

[BUG] Clicking on a different thumbnail during model download sometimes causes model info page to not load.

Describe the bug
While downloading a model, if clicking on a thumbnail to load a different model info page, that model info page may sit there loading indefinitely without timing out.. This usually happens when Civitai is overloaded.

The only resolution that I've found is to refresh the auto1111 page. Using the "Refresh" button, changing pages, clicking on a different thumbnail, nothing resets it besides refreshing the page.

To Reproduce
Steps to reproduce the behavior:

  1. Download a model.
  2. While downloading, click on a different thumbnail.
  3. The model page will sit there loading indefinitely. Does not happen every time.

Expected behavior
The model info page should either time out or load eventually.

Potential solution
Successfully downloading a model could trigger a refresh of the currenty displayed model info page? Or maybe a Retry button of some kind that stops the attempt to load the data and reloads it.

[BUG] Error if changing content types between pages

Describe the bug
If searching for multiple content types (like LORA and LoCon simultaneously), if a type is removed and then page change occurs, it errors out.

To Reproduce
Steps to reproduce the behavior:

  1. Select more than one content type.
  2. Click on "Refresh"
  3. Remove a content type
  4. Click "Next Page"

Expected behavior
The next page is loaded without the removed content type, or the list is refreshed back to the first page without that content type.

Error

Traceback (most recent call last):
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
    result = await self.call_function(
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
    response = f(*args, **kwargs)
  File "C:\stable-diffusion\automatic1111\extensions\sd-civitai-browser-plus\scripts\civitai_api.py", line 269, in update_next_page
    return_values = update_model_list(content_type, sort_type, period_type, use_search_term, search_term, page_count, model_name, timeOut, isNext)
  File "C:\stable-diffusion\automatic1111\extensions\sd-civitai-browser-plus\scripts\civitai_api.py", line 389, in update_model_list
    for item in gl.ver_json['items']:
TypeError: 'NoneType' object is not subscriptable

[BUG] Doesn't show multiple variations as [installed], only the latest.

When you have models with multiple variations, the extension doesn't let you know which are installed other than the latest. you have to click on each variation to see if you get a "download" or a "delete" to see if you already have it.

Practical example - https://civitai.com/models/42903 Doll Likeness - by EDG
Creator has many variations, like Canadian Doll likeness, Polish Doll Likeness, and Dutch Girl Likenesss.
Browser plus will only show the "latest" one installed, and not all.

Even checkpoints that might have a No VAE and an Inpainting model versions, will only show the "latest" one you have installed, vs all.

Additional context

  • Extension version: 6232b9d | 2023-09-27 18:51:42 (v1.12.4)
  • OS:Windows
    A111 version: v1.6.0 โ€€โ€ขโ€€ python: 3.10.6 โ€€โ€ขโ€€ torch: 2.0.1+cu118 โ€€โ€ขโ€€ xformers: 0.0.20 โ€€โ€ขโ€€ gradio: 3.41.2

6232b9de 2023-09-27 18:51:42

[BUG] NameError: name 'aria2' is not defined

Describe the bug
I receive this error message after installing the plugin :

*** Error loading script: civitai_gui.py
Traceback (most recent call last):
File "/.../modules/scripts.py", line 382, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/.../modules/script_loading.py", line 10, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/.../extensions/sd-civitai-browser-plus/scripts/civitai_gui.py", line 7, in
import scripts.civitai_download as _download
File "/.../extensions/sd-civitai-browser-plus/scripts/civitai_download.py", line 61, in
start_aria2_rpc(aria2)
NameError: name 'aria2' is not defined

(/.../ replace the real path)

To Reproduce
Steps to reproduce the behavior:
install the extension, do a ./webui.sh on macM1

Additional context
app: stable-diffusion-webui.git
updated: 2023-08-31
hash: 5ef669de
url: https://github.com/AUTOMATIC1111/stable-diffusion-webui.git/tree/master

arch: arm64
cpu: arm
system: Darwin
release: 22.6.0
python: 3.10.6

xformers:
diffusers: 0.16.1
transformers: 4.30.2

active: cpu
dtype: torch.float32
vae: torch.float32
unet: torch.float32

[Bug]: Models with an apostrophe in the title can't be loaded

Describe the bug.

Clicking on the card for a model with an apostrophe in the title does nothing. Will not try to load model info.

Steps to reproduce the problem.

  1. Search for LORAs using 's as the search term.
  2. Click on any model card that appears.
  3. Nothing.

Expected behavior

Should load model info

System info

  • Extension version:
  • OS:
  • SD-WebUI version:
  • Python:

Console logs

Nothing in auto1111 console

Chromium DevTools console shows this:
(index):1 Uncaught SyntaxError: missing ) after argument list (at (index):1:14)

Additional information

No response

[BUG] 'list' object has no attribute 'get'

When trying to refresh models from civitai

Traceback (most recent call last):
  File "C:\Users\mag\Downloads\st-web-gui\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\Users\mag\Downloads\st-web-gui\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
    result = await self.call_function(
  File "C:\Users\mag\Downloads\st-web-gui\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "C:\Users\mag\Downloads\st-web-gui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "C:\Users\mag\Downloads\st-web-gui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "C:\Users\mag\Downloads\st-web-gui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "C:\Users\mag\Downloads\st-web-gui\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
    response = f(*args, **kwargs)
  File "C:\Users\mag\Downloads\st-web-gui\extensions\sd-civitai-browser-plus\scripts\civitai_api.py", line 366, in update_model_list
    HTML = model_list_html(gl.json_data, model_dict)
  File "C:\Users\mag\Downloads\st-web-gui\extensions\sd-civitai-browser-plus\scripts\civitai_api.py", line 210, in model_list_html
    sha256 = json_data.get('sha256')
AttributeError: 'list' object has no attribute 'get'

Latest version from github of extension
version: v1.6.0-40-g766f553f โ€€โ€ขโ€€ python: 3.10.8 โ€€โ€ขโ€€ torch: 2.0.1+cu118 โ€€โ€ขโ€€ xformers: 0.0.21 โ€€โ€ขโ€€ gradio: 3.41.2

[BUG] Major issue - Deleting a model deletes ALL models with same characters in name!

Describe the bug
I deleted the "RPG" model, and it deleted EVERY model I had (including all my custom models) with "RPG" in the name

To Reproduce
Steps to reproduce the behavior:

  1. Select a model you already have, and one that has a name present in other models
  2. Click on Delete Model

Expected behavior
Only the actual selected model should be deleted, not every model that contains its name - such as custom mixes which by default A1111 names with the model names used in the mix

Screenshots

Additional context

  • Extension version: f9e980b
  • OS: Windows 11
  • SD version: 5ef669de080814067961f28357256e8fe27544f4 (1.6.0)

Removed: E:\stable-diffusion-webui\models\Stable-diffusion\0.7(protogenX53Photorealism_10) + 0.3(rpg_V4).civitai.info
Removed: E:\stable-diffusion-webui\models\Stable-diffusion\0.7(protogenX53Photorealism_10) + 0.3(rpg_V4).safetensors
Removed: E:\stable-diffusion-webui\models\Stable-diffusion\rpg_V4 + 0.2(duchaitenaiart_V20 - SD-mode-1.5l) + 0.1(inkpunkDiffusion_v2 - SD-mode-1.5l).civitai.info
Removed: E:\stable-diffusion-webui\models\Stable-diffusion\rpg_V4 + 0.2(duchaitenaiart_V20 - SD-mode-1.5l) + 0.1(inkpunkDiffusion_v2 - SD-mode-1.5l).safetensors
Removed: E:\stable-diffusion-webui\models\Stable-diffusion\rpg_V4 + 0.2(duchaitenaiart_V20 - SD-mode-1.5l) + 0.2(inkpunkDiffusion_v2 - SD-mode-1.5l).civitai.info
Removed: E:\stable-diffusion-webui\models\Stable-diffusion\rpg_V4 + 0.2(duchaitenaiart_V20 - SD-mode-1.5l) + 0.2(inkpunkDiffusion_v2 - SD-mode-1.5l).safetensors
Removed: E:\stable-diffusion-webui\models\Stable-diffusion\rpg_V4 + 0.2(duchaitenaiart_V20 - SD-mode-1.5l) + 0.2(xperoEnd1essModel_v1 - SD-mode-1.5l).civitai.info
Removed: E:\stable-diffusion-webui\models\Stable-diffusion\rpg_V4 + 0.2(duchaitenaiart_V20 - SD-mode-1.5l) + 0.2(xperoEnd1essModel_v1 - SD-mode-1.5l).ckpt
Removed: E:\stable-diffusion-webui\models\Stable-diffusion\rpg_V4 + 0.2(duchaitenaiart_V20 - SD-mode-1.5l) + 0.4(inkpunkDiffusion_v2 - SD-mode-1.5l).civitai.info
Removed: E:\stable-diffusion-webui\models\Stable-diffusion\rpg_V4 + 0.2(duchaitenaiart_V20 - SD-mode-1.5l) + 0.4(inkpunkDiffusion_v2 - SD-mode-1.5l).safetensors
Removed: E:\stable-diffusion-webui\models\Stable-diffusion\rpg_V4 + 0.2(duchaitenaiart_V20 - SD-mode-1.5l).civitai.info
Removed: E:\stable-diffusion-webui\models\Stable-diffusion\rpg_V4 + 0.2(duchaitenaiart_V20 - SD-mode-1.5l).safetensors
Removed: E:\stable-diffusion-webui\models\Stable-diffusion\rpg_V4.civitai.info
Removed: E:\stable-diffusion-webui\models\Stable-diffusion\rpg_V4.preview.png
Removed: E:\stable-diffusion-webui\models\Stable-diffusion\rpg_V4.safetensors

[Bug]: Aria2 fails to download without --disable-ipv6

Describe the bug.

Cant download with aria2 if --disable-ipv6 option is not supplied.

Steps to reproduce the problem.

Local ipv6 but no external ipv6 support by isp.

Expected behavior

Downloads the model.

System info

Irrelevant, only specific to aria2.

Console logs

10/13 11:12:28 [ERROR] CUID#7 - Download aborted. URI=https://civitai.com/api/download/models/176425
Exception: [AbstractCommand.cc:312] errorCode=1 Network problem has occurred. cause:A socket operation was attempted to an unreachable network.

Additional information

Please add a textfield in options to add command line options for aria2.

[BUG] Non-model files being checked for updates alongside the valid files

Describe the bug
When updating all models to retrieve tags for those that don't have them, it appears to be checking for info file as well as the valid models themselves. Unless I am misinterpreting what I see. Does the extension have a filter so it only looks at files with .safetensors etc?

To Reproduce
Steps to reproduce the behavior:

  1. Go to CIvit AI tab
  2. Go to 'Update All Tags' sub-tab
  3. Click 'Update Selected Tags' (in my case I had Loras selected. a second Update using Checkpoints had the same behaviour))
  4. Look at console as it updates
  5. See error

Expected behavior
Checking only valid filetypes, not including .txt, .info, .ini etcetera. Assmuption is that would be easier on API by only searching valid filetypes.

Screenshots/Example

image
image

copied text version:
Failed to fetch tags for C:\stable-diffusion\webui\models\Lora\desktop.ini
Failed to fetch tags for C:\stable-diffusion\webui\models\Lora\put_loras_here

Failed to fetch tags for C:\stable-diffusion\webui\models\Lora\Artsy\line_girl.civitai.info
Tags saved as JSON in C:\stable-diffusion\webui\models\Lora\Artsy\line_girl.json
Failed to fetch tags for C:\stable-diffusion\webui\models\Lora\Artsy\lucyfleming-07.civitai.info
Tags saved as JSON in C:\stable-diffusion\webui\models\Lora\Artsy\lucyfleming-07.json
Failed to fetch tags for C:\stable-diffusion\webui\models\Lora\Artsy\meowhoodLora_v15.civitai.info
Request timed out for C:\stable-diffusion\webui\models\Lora\Artsy\meowhoodLora_v15.safetensors. Skipping...
Failed to fetch tags for C:\stable-diffusion\webui\models\Lora\Artsy\n3on - Style.civitai.info
Tags saved as JSON in C:\stable-diffusion\webui\models\Lora\Artsy\n3on - Style.json
Failed to fetch tags for C:\stable-diffusion\webui\models\Lora\Artsy\porcelainGzhel_v10black.civitai.info
Tags saved as JSON in C:\stable-diffusion\webui\models\Lora\Artsy\porcelainGzhel_v10black.json
Failed to fetch tags for C:\stable-diffusion\webui\models\Lora\Artsy\porcelainGzhel_v10white.civitai.info

Additional context

  • Extension version: main c1b13e1 2023-09-13 02:32:56
  • OS: Windows 11
  • SD version: A1111 version 1.6.0
  • Python: 3.10.12

Make NSFW toggle dynamic

Is your feature request related to a problem? Please describe.
Currently, checking/unchecking NSFW doesn't take effect until refresh/page load/etc. I usually browse with it unchecked, but sometimes emergency eye bleach is needed. On the flip side, sometimes browsing with NSFW on blurs out images that clearly are not actually NSFW (though marked as such for some reason) and one might want to see them.

Describe the solution you'd like
The blur should be dynamically applied/removed to any images currently displayed when checking/unchecking.

[BUG] After download failure, the download button stays disabled until refreshed.

Describe the bug
After model fails to download and "Please try again" message appears, the download button stays disabled.

To Reproduce
Steps to reproduce the behavior:

  1. Click on Download button.
  2. After retrying then failing to download, "Please try again" message appears.
  3. Download button stays disabled.

Expected behavior
Download button should re-enable. As a workaround, selecting the model thumbnail again refreshes the data and re-enables the download button.

[BUG] "Filter Base Model" mixed with large amounts of models is confusing

Describe the bug
When searching (especially through a larger time period) and choosing SDXL 1.0 for "Filter Base Model", the display is confusing, because there will be pages and pages of hidden thumbnails.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Content Type: "LORA", Time Period: "All Time", Sort by "Highest Rated"
  2. Optional: "Divide cards by date"
  3. Click Refresh
  4. Blank pages or many dividers with no thumbnails

Expected behavior
Thumbnails should appear. I know the filter hides thumbnails due to the API not being able to return only specified base models.

I don't know what you could do to fix this, but you could dim/make transparent those thumbnails that don't match the model filter. That way there's not blank pages where thumbnails would be expected to be, and it would make it more obvious that the filter is merely hiding these in the display. See my second screenshot below, where I set SD 1.5 models to only display at 10% opacity. (Side note: you can see the NSFW blur is not too effective at tile size 12 ๐Ÿ˜).

Screenshot
Issue:
image

Proposed update:
image

[BUG] Certain search words trigger errors on specific searches.

Certain words produce an error when conducting specific types of searches. They have a few that do it, but this is the only i really took notice off because I thought it was just network connection errors before.

To Reproduce
Steps to reproduce the behavior:

  • Start a brand new fresh session/tab.
  • leave content type blank, set sort type to newest
  • Set search term to Next
  • Click Refresh.
  • errors out the UI

Notes/ Observations:

  • Selecting any other [sort by] option functions as normal
  • Selecting any/all [Content type] functions as normal
  • if you do a blank [content type] with another [sort by], and then switch to [Newest], it errors out, but clicking [next page] works as expected. Clicking [previous page] from that page, however, results in an error, so its something about that first page result.

Additional context

  • Extension version: 0f26dcb 2023-09-28 15:16:20 v1.12.5 (Hotfix)
  • OS: Windows
    version: v1.6.0 โ€€โ€ขโ€€ python: 3.10.6 โ€€โ€ขโ€€ torch: 2.0.1+cu118 โ€€โ€ขโ€€ xformers: 0.0.20 โ€€โ€ขโ€€ gradio: 3.41.2 โ€€

[BUG] Installed folder location not updating properly when clicking on downloaded model

Describe the bug
Downloaded models now show the current folder as the bottom one in the dropdown.

To Reproduce

  1. Click on thumbnail of model that has been downloaded, or download a model, then click the thumbnail again afterward.
  2. Sub Folder displays as last one in the dropdown (presumably, as it always displays "vehicles" for me, as seen below).
  3. It also will download to that folder if not changed before downloading new version of model.

Expected behavior
It should display the actual folder it's in, as before.

Screenshots
image

[Feature Request] Option to update tags for already downloaded Models

Is your feature request related to a problem? Please describe.
Option to update/create tags for already downloaded Models

Describe the solution you'd like
I have downloaded few Loras through your extension with save tags after download enabled. Tags/activation text are huge help while genearting in sd webui

Describe alternatives you've considered
Currently i have 1000+ loras downloaded, and its impossible to redownload all through the extension(not impossible though, but its time and bandwidth consuming.)

[BUG] Bad path when downloading model, UI state in error

Describe the bug
Error when downloading, doesn't change back from 'cancel download' to download after error.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Civit AI' tab
  2. Click on 'Refresh'
  3. Pick a model
  4. Click download
  5. Wait
  6. Error pill will appear
  7. Change tabs, refresh browser
  8. Still shows 'Cancel download'

Expected behavior
Clicking download should write to the proper folder for the images. Instead it is not doing an exists check and appends the same thing (e.g. models\\Stable-diffusion \\models\\Stable-diffusion\\dreamshaper_8.preview.png). Here is the stack from the console

Traceback (most recent call last):
  File "c:\automatic\venv\lib\site-packages\gradio\queueing.py", line 388, in call_prediction
    output = await route_utils.call_process_api(
  File "c:\automatic\venv\lib\site-packages\gradio\route_utils.py", line 219, in call_process_api
    output = await app.get_blocks().process_api(
  File "c:\automatic\venv\lib\site-packages\gradio\blocks.py", line 1437, in process_api
    result = await self.call_function(
  File "c:\automatic\venv\lib\site-packages\gradio\blocks.py", line 1109, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "c:\automatic\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "c:\automatic\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "c:\automatic\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "c:\automatic\venv\lib\site-packages\gradio\utils.py", line 641, in wrapper
    response = f(*args, **kwargs)
  File "c:\automatic\extensions\sd-civitai-browser-plus\scripts\civitai_download.py", line 399, in download_create_thread
    _file.save_preview(preview_html, path_to_new_file, install_path)
  File "c:\automatic\extensions\sd-civitai-browser-plus\scripts\civitai_file_manage.py", line 132, in save_preview
    with open(preview_path, 'wb') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'models\\Stable-diffusion\\models\\Stable-diffusion\\dreamshaper_8.preview.png'

Screenshots
image

Additional context

  • Extension version: 38a7006
  • OS: Windows 11 Pro
  • SD version: vladomatic master branch (25/10/2023
  • Python: 3.10.10
  • Any Additional info
  • This was a freshly checked-out install of Automatic1111 Vlad edition, only one extension was installed.

Feature Request(s) - Base Model Selection

Why this extension isn't incorporated into A1111 is beyond me. Thank you for an amazing job!

I do have possible update ideas though.

    1. The ability to filter out Base Models. That is, (for example) view or search for only 1.5 models. Maybe even limit the filter choice to only 1.5, 2.0, 2.1 & SDXL1.0
    1. Models currently all point to, and are saved to their default folder (example: path/to/sd/model/lora)

Nested folders don't seem to be detected: (path/to/sd/model/lora/clothing or path/to/sd/model/lora/hairstyles)

    1. Saved State. I don't know if this is just me, but upon every launch, the previous state reverts to default values. (Checkboxes, Tile Count, etc...)
    1. More of a nice to have really, but the ability to adjust the Tile size would be delicious!!

Again, thank you for the incredible work on this extension, and I look forward to seeing how it evolves in the future.

[BUG] LyCORIS removed from the filter & LORA is stuck on page 1

Describe the bug
LyCORIS is no longer in the dropdown box for Content Type and after selecting LORA search results are stuck on page 1.

To Reproduce
Steps to reproduce the behavior:

  1. Select LORA for content type
  2. Click on Next Page

Screenshots
1
2
3

Additional context

  • Extension version: Version of this extension
  • OS: Windows 10
  • SD version: A1111 1.5.2
  • Python: 3.10.6
  • Branch: 6682f81

[BUG] Tab vanished after update

Describe the bug
Tab not showing after update

To Reproduce

  1. Update through Extension tab
  2. Apply and restart UI

Expected behavior
To see the tab? i guess.. :)

Screenshots
Screenshot 2023-09-14 at 12 42 57

Additional context

  • Extension version: latest
  • OS: Mac OS, latest
  • SD version: A111 latest
  • Python: latest
  • Any Additional info
    Thanks!

Download button disappeared after deleting model

I downloaded a textual inversion. The download showed successful, but the model was 0 kb in the folder, so the extension detected it as installed.

I used the Delete Model button to delete it. The Download Model button disappeared after that, and would not come back even after refreshing the UI. I tried to reload UI, but my auto1111 gave errors and wouldn't reload... not sure if that was related. Restarting auto1111 resolved the issue.

So this may be an isolated incident, but wanted to bring it to your attention. The other issue mentioned above is the download actually failed since it was not the right file size, but was detected as installed anyway. I've seen files partially downloaded many times with other extensions such as Civitai Helper, so that seems to be an issue with the Civitai API itself (or maybe even Gradio).

You may want to consider adding size matching locally to the size on server when detecting installed models, and if they don't match, have a "redownload" option or something like that.

[Bug]: Keeps on loading

Describe the bug.

Menu/Dropdown keeps on loading

error

Steps to reproduce the problem.

  1. Go to Civit Ai tab after startup
  2. Menu/Dropdown keeps on loading

Expected behavior

Ideally it loads for few seconds and then stops. After latest update, it keeps on loading

System info

  • Extension version: v1.14.5
  • OS: win 11
  • SD-WebUI version: 1.6.0
  • Python: 3.10.11

Console logs

remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Total 6 (delta 5), reused 6 (delta 5), pack-reused 0
Unpacking objects: 100% (6/6), 1.38 KiB | 83.00 KiB/s, done.
From https://github.com/AUTOMATIC1111/stable-diffusion-webui
 * [new branch]        lora_emb_bundle -> origin/lora_emb_bundle
Already up to date.
venv "D:\AI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Installing requirements
loading PromptsBrowser reqs from D:\AI\stable-diffusion-webui\extensions\PromptsBrowser\requirements.txt
Checking PromptsBrowser requirements.
Installing requirements for CivitAI Browser
===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please submit your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
================================================================================
binary_path: D:\AI\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\cuda_setup\libbitsandbytes_cuda116.dll
CUDA SETUP: Loading binary D:\AI\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\cuda_setup\libbitsandbytes_cuda116.dll...
Installing requirements for Face Editor
Installing requirements for easyphoto-webui
Installing requirements for tensorflow
Installing requirements for easyphoto-webui
Installing requirements for modelscope
Installing requirements for easyphoto-webui
Installing requirements for diffusers
Faceswaplab : Use GPU requirements
Checking faceswaplab requirements
0.008205200001611956
Installing requirements for Rich-Text-to-Image
Installing requirements for Rich-Text-to-Image
Installing sd-webui-train-tools requirement: D:\AI\stable-diffusion-webui\extensions\sd-webui-train-tools\requirements.txt
loading WD14-tagger reqs from D:\AI\stable-diffusion-webui\extensions\stable-diffusion-webui-wd14-tagger\requirements.txt
Checking WD14-tagger requirements.
Launching Web UI with arguments: --opt-split-attention --xformers --opt-channelslast --opt-sub-quad-attention --opt-sdp-attention --upcast-sampling --api --theme dark
[Civitai Helper] Load setting from: D:\AI\stable-diffusion-webui\extensions\Stable-Diffusion-Webui-Civitai-Helper\setting.json
[-] ADetailer initialized. version: 23.10.0, num models: 14
Aria2 RPC started

10/09 21:20:19 [WARN] Neither --rpc-secret nor a combination of --rpc-user and --rpc-passwd is set. This is insecure. It is extremely recommended to specify --rpc-secret with the adequate secrecy or now deprecated --rpc-user and --rpc-passwd.

10/09 21:20:19 [NOTICE] IPv4 RPC: listening on TCP port 6800

10/09 21:20:19 [NOTICE] IPv6 RPC: listening on TCP port 6800
2023-10-09 21:20:22,039 - modelscope - INFO - PyTorch version 2.0.1+cu118 Found.
2023-10-09 21:20:22,043 - modelscope - INFO - TensorFlow version 2.14.0 Found.
2023-10-09 21:20:22,043 - modelscope - INFO - Loading ast index from C:\Users\<username>\.cache\modelscope\ast_indexer
2023-10-09 21:20:22,357 - modelscope - INFO - Loading done! Current index file version is 1.8.4, with md5 d70353da54aca7d863e8df0ffbbf40c6 and a total number of 902 components indexed
2023-10-09 21:20:26,515 - ControlNet - INFO - ControlNet v1.1.410
ControlNet preprocessor location: D:\AI\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2023-10-09 21:20:26,807 - ControlNet - INFO - ControlNet v1.1.410
[sd-webui-freeu] Controlnet support: *enabled*
Loading weights [399a00a7b5] from D:\AI\stable-diffusion-webui\models\Stable-diffusion\epicphotogasm_v31Getwhatyouprompt.safetensors
Creating model from config: D:\AI\stable-diffusion-webui\configs\v1-inference.yaml
Model loaded in 4.4s (load weights from disk: 0.2s, create model: 0.6s, apply weights to model: 1.3s, apply channels_last: 1.3s, load VAE: 0.1s, load textual inversion embeddings: 0.7s).
[SC LOADER][WARNING] >>>>  Could not load DB, using default one at D:\AI\stable-diffusion-webui\extensions\sd-webui-sc-loader\base_configs, you can change it in tools or settings.
[SC LOADER][WARNING] >>>>  Could not load DB, using default one at D:\AI\stable-diffusion-webui\extensions\sd-webui-sc-loader\base_configs, you can change it in tools or settings.
[SC LOADER][WARNING] >>>>  Could not load DB, using default one at D:\AI\stable-diffusion-webui\extensions\sd-webui-sc-loader\base_configs, you can change it in tools or settings.
Applying attention optimization: xformers... done.
D:\AI\stable-diffusion-webui\modules\gradio_extensons.py:25: GradioDeprecationWarning: `optional` parameter is deprecated, and it has no effect
  res = original_IOComponent_init(self, *args, **kwargs)
checkpoint title =  epicphotogasm_v31Getwhatyouprompt.safetensors [399a00a7b5]
checkpoint title =  epicphotogasm_v31Getwhatyouprompt.safetensors [399a00a7b5]
D:\AI\stable-diffusion-webui\extensions\PBRemTools\scripts\main.py:47: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  gallery = gr.Gallery(label="outputs", show_label=True, elem_id="gallery").style(grid=2, object_fit="contain")
D:\AI\stable-diffusion-webui\extensions\PBRemTools\scripts\main.py:47: GradioDeprecationWarning: The 'grid' parameter will be deprecated. Please use 'columns' in the constructor instead.
  gallery = gr.Gallery(label="outputs", show_label=True, elem_id="gallery").style(grid=2, object_fit="contain")
add tab
[([button, button, button, button, button], button, gallery), ([button, button, button, button, button], button, gallery)]
Civitai Shortcut: v1.6.7
Civitai Shortcut: shortcut update start
D:\AI\stable-diffusion-webui\extensions\sd-fast-pnginfo\scripts\fast-pnginfo.py:40: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  with gr.Row().style(equal_height=False):
D:\AI\stable-diffusion-webui\extensions\sd-webui-EasyPhoto\scripts\easyphoto_ui.py:86: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  instance_images = gr.Gallery().style(columns=[4], rows=[2], object_fit="contain", height="auto")
D:\AI\stable-diffusion-webui\modules\gradio_extensons.py:50: GradioDeprecationWarning: `width` is deprecated in `Interface()`, please use it within `launch()` instead.
  res = original_BlockContext_init(self, *args, **kwargs)
D:\AI\stable-diffusion-webui\extensions\sd-webui-EasyPhoto\scripts\easyphoto_ui.py:274: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  gallery = gr.Gallery(template_gallery_list).style(columns=[4], rows=[2], object_fit="contain", height="auto")
D:\AI\stable-diffusion-webui\extensions\sd-webui-EasyPhoto\scripts\easyphoto_ui.py:287: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  uploaded_template_images = gr.Gallery().style(columns=[4], rows=[2], object_fit="contain", height="auto")
D:\AI\stable-diffusion-webui\extensions\sd-webui-EasyPhoto\scripts\easyphoto_ui.py:520: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  output_images = gr.Gallery(
D:\AI\stable-diffusion-webui\extensions\sd-webui-EasyPhoto\scripts\easyphoto_ui.py:526: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  face_id_outputs = gr.Gallery(
D:\AI\stable-diffusion-webui\extensions\sd-webui-prompt-history\scripts\prompt_history_script.py:146: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  preview_image = gr.Image(
D:\AI\stable-diffusion-webui\extensions\sd-webui-rich-text\scripts\rich_text_on_tab.py:284: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  richtext_result.style(height=784)
D:\AI\stable-diffusion-webui\extensions\sd-webui-train-tools\liasece_sd_webui_train_tools\ui.py:71: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  gr_project_version_dataset_gallery = gr.Gallery(value=None, label='Output', show_label=False, elem_id=f"gr_project_version_dataset_gallery").style(grid=4)
D:\AI\stable-diffusion-webui\extensions\sd-webui-train-tools\liasece_sd_webui_train_tools\ui.py:71: GradioDeprecationWarning: The 'grid' parameter will be deprecated. Please use 'columns' in the constructor instead.
  gr_project_version_dataset_gallery = gr.Gallery(value=None, label='Output', show_label=False, elem_id=f"gr_project_version_dataset_gallery").style(grid=4)
D:\AI\stable-diffusion-webui\extensions\sd-webui-train-tools\liasece_sd_webui_train_tools\ui.py:219: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  train_checkpoint_txt2txt_preview_gallery_list.append(gr.Gallery(value = None, visible= False, label='Output', show_label=False, elem_id=f"train_checkpoint_txt2txt_preview_gallery").style(grid=[4]))
D:\AI\stable-diffusion-webui\extensions\sd-webui-train-tools\liasece_sd_webui_train_tools\ui.py:219: GradioDeprecationWarning: The 'grid' parameter will be deprecated. Please use 'columns' in the constructor instead.
  train_checkpoint_txt2txt_preview_gallery_list.append(gr.Gallery(value = None, visible= False, label='Output', show_label=False, elem_id=f"train_checkpoint_txt2txt_preview_gallery").style(grid=[4]))
D:\AI\stable-diffusion-webui\extensions\stable-diffusion-webui-Prompt_Generator\scripts\prompt_generator.py:229: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  row.style(equal_height=True)
D:\AI\stable-diffusion-webui\extensions\stable-diffusion-webui-dataset-tag-editor\scripts\main.py:218: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  with gr.Row().style(equal_height=False):
D:\AI\stable-diffusion-webui\extensions\stable-diffusion-webui-dataset-tag-editor\scripts\tag_editor_ui\block_dataset_gallery.py:25: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  self.gl_dataset_images = gr.Gallery(label='Dataset Images', elem_id="dataset_tag_editor_dataset_gallery").style(grid=image_columns)
D:\AI\stable-diffusion-webui\extensions\stable-diffusion-webui-dataset-tag-editor\scripts\tag_editor_ui\block_dataset_gallery.py:25: GradioDeprecationWarning: The 'grid' parameter will be deprecated. Please use 'columns' in the constructor instead.
  self.gl_dataset_images = gr.Gallery(label='Dataset Images', elem_id="dataset_tag_editor_dataset_gallery").style(grid=image_columns)
D:\AI\stable-diffusion-webui\extensions\stable-diffusion-webui-dataset-tag-editor\scripts\tag_editor_ui\tab_filter_by_selection.py:35: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  self.gl_filter_images = gr.Gallery(label='Filter Images', elem_id="dataset_tag_editor_filter_gallery").style(grid=image_columns)
D:\AI\stable-diffusion-webui\extensions\stable-diffusion-webui-dataset-tag-editor\scripts\tag_editor_ui\tab_filter_by_selection.py:35: GradioDeprecationWarning: The 'grid' parameter will be deprecated. Please use 'columns' in the constructor instead.
  self.gl_filter_images = gr.Gallery(label='Filter Images', elem_id="dataset_tag_editor_filter_gallery").style(grid=image_columns)
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 142.6s (prepare environment: 88.1s, import torch: 9.2s, import gradio: 0.9s, setup paths: 1.2s, initialize shared: 0.3s, other imports: 0.8s, setup codeformer: 0.2s, list SD models: 1.1s, load scripts: 30.6s, create ui: 5.4s, gradio launch: 2.9s, add APIs: 0.1s, app_started_callback: 1.6s).

Additional information

No response

[Bug]: This specific LORA gives an error when clicking on it

Describe the bug.

https://civitai.com/models/28182/concept-loongchina-dragoneastern-dragon

When clicking on this LORA all the fields say error.

Steps to reproduce the problem.

  1. Choose LORA and type in concept loong
  2. Click the LORA
  3. Error

Expected behavior

Not error

System info

  • Extension version: be5b0f3
  • OS: Windows 10
  • SD-WebUI version: 1.5.2
  • Python: 3.10.6

Console logs

Model name not found in json_data. (update_model_versions)
Traceback (most recent call last):
  File "K:\Stable Diffusion A1111\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "K:\Stable Diffusion A1111\venv\lib\site-packages\gradio\blocks.py", line 1323, in process_api
    result = await self.call_function(
  File "K:\Stable Diffusion A1111\venv\lib\site-packages\gradio\blocks.py", line 1051, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "K:\Stable Diffusion A1111\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "K:\Stable Diffusion A1111\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "K:\Stable Diffusion A1111\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "K:\Stable Diffusion A1111\extensions\sd-civitai-browser-plus\scripts\civitai_gui.py", line 733, in update_models_dropdown
    (ret_versions, back_to_top) = _api.update_model_versions(model_name)
TypeError: cannot unpack non-iterable NoneType object

Additional information

No response

[BUG]

'Save settings as default" window won't go away. I go into the page and it is there on top of everything and won't go away, no matter what I click on. Work just fine until I updated it.

Option to choose over multiple model download options

Is your feature request related to a problem? Please describe.
When downloading models that have pruned and full versions, the extension downloads a random one i think, sometimes resulting in the full one.

Describe the solution you'd like
I would like an additional dropdown if there exist differente model options

Additional context
image
image

[help] please advise how " Save tags after download " work?..

I am quite a beginner for using models...
do these saved tags mean Trained Tags, which can enchance prompt like lora or embeddings do?
Is there an easy ways to load Trained Tags(if any) to prompt? or display hints for trained tags somewhere as reference when using a certain model?
image

[BUG] Recent style changes break many other tabs

Describe the bug
Recent style changes break many other tabs. Entries in style sheet should probably be scoped (prefix with #tab_civitai_interface)

Reverting to v1.11 fixed the issue.

To Reproduce
Steps to reproduce the behavior:

  1. Activate img2img tab
  2. Click on inpaint
  3. press S key on keyboard to go to fullscreen editor
  4. canvas does not expand properly

Or if you have openOutpaint installed:

  1. Activate openOutpaint tab
  2. see that it only displays the top few pixels of the editor

Expected behavior
This extensions styles only apply to this extension.

Additional context

  • Extension version: v1.11.2 or greater
  • OS: Windows
  • SD version: v1.6.0
  • Python: 3.10.6

[Bug]: TypeError: argument of type 'NoneType' is not iterable

Describe the bug.

Hi,
My A1111 produces an error when I try to pull updates from Civ:

File "****\automatic1111\stable-diffusion-webui\extensions\sd-civitai-browser-plus\scripts\civitai_api.py", line 119, in contenttype_folder
if "ADETAILER" in desc:
TypeError: argument of type 'NoneType' is not iterable

Steps to reproduce the problem.

  1. Go to ....
  2. Press ....
  3. ...

Expected behavior

Pulling updates from Civitai

System info

  • Extension version: v1.14.6
  • OS: w11 64b
  • SD-WebUI version: 1.6.0
  • Python: python: 3.10.9

Console logs

File "****\automatic1111\stable-diffusion-webui\extensions\sd-civitai-browser-plus\scripts\civitai_api.py", line 119, in contenttype_folder
    if "ADETAILER" in desc:
TypeError: argument of type 'NoneType' is not iterable

Additional information

No response

[BUG] Delete model button deletes the whole folder.

Describe the bug
When a Lora version file has been selected for deletion, the delete button deletes the whole folder where the file is. Unfortunately, the folder is a folder where all my Loras are stored. All of them were deleted.

[BUG]

Describe the bug
I select a model card, and click Download Model. The progress never advances past 0%

To Reproduce
Steps to reproduce the behavior:

  1. Select the Civit AI Tab
  2. Click Refresh
  3. Select a model card
  4. Click Download Model

Expected behavior
Model should download

Screenshots
image

Additional context

  • Extension version: f9e980b
  • OS:Windows 11
  • SD version: A1111 version: Version: v1.6.0
    Commit hash: 5ef669de080814067961f28357256e8fe27544f4
  • Python: Not sure where to find this
  • Any Additional info

Feature Request: Browse while downloading

This extension has helped a lot so far with my morning ritual of browsing through all the new LORAs/LoCons. However, having to wait for each download instead of continuing to browse slows down the process quite a bit.

Issue: Having to wait for a download to complete to continue browsing.

Solution: The download button adds the download task to a queue. Download progress is displayed in the queue itself next to each download instead of overlaying the browser. If any download tasks fail, a retry button will appear next to them in the queue.

[Bug]: Getting "UnboundLocalError: local variable 'api_response' referenced before assignment" Error

Describe the bug.

When trying to update Loras or TextualInversions I can load installed models to the browser but when I click on Scan for Available Updates an error shows up on the console:

File "/home/ubuntu/stable-diffusion-webui/extensions/sd-civitai-browser-plus/scripts/civitai_file_manage.py", line 574, in file_scan
updated_models, outdated_models = version_match(file_paths, api_response)
UnboundLocalError: local variable 'api_response' referenced before assignment

Steps to reproduce the problem.

  1. Go to Civit AI tab
  2. Click "Update Models"
  3. Select Lora
  4. Click "load installed models to browser"
  5. Click "Scan for Available Updates"
  6. shows "error" in red inside an oval

Expected behavior

Should show me the Loras that are outdated like it does for checkpoints (which does work)

System info

OS: Ubuntu
version: v1.6.0 โ€‚โ€ขโ€‚ python: 3.10.10 โ€‚โ€ขโ€‚ torch: 2.0.1+cu118 โ€‚โ€ขโ€‚ xformers: 0.0.17 โ€‚โ€ขโ€‚ gradio: 3.41.2 โ€‚โ€ขโ€‚ checkpoint: 76be5be1b2

Extension version: 60e11cba

Console logs

File "/home/ubuntu/stable-diffusion-webui/extensions/sd-civitai-browser-plus/scripts/civitai_file_manage.py", line 574, in file_scan
    updated_models, outdated_models = version_match(file_paths, api_response)
UnboundLocalError: local variable 'api_response' referenced before assignment

Additional information

I do have Loras and Textual inversions that do not exist on Civitai

[BUG] Unable to finish scan for updates for large model sets

Describe the bug
Unable to finish scan for updates for large model sets. Works fine for smaller sets, like my checkpoints, textualinversions, etc.

To Reproduce
Steps to reproduce the behavior:

  1. Have a lot of LORAs
  2. Click on "Update Models"
  3. Select "LORA"
  4. Click "Scan"
  5. Wait for loading bar
  6. See error pill and below error in console:
Error: Received status code 400
Traceback (most recent call last):
  File "F:\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "F:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
    result = await self.call_function(
  File "F:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "F:\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "F:\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "F:\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "F:\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
    response = f(*args, **kwargs)
  File "F:\stable-diffusion-webui\extensions\sd-civitai-browser-plus\scripts\civitai_file_manage.py", line 527, in file_scan
    api_response['items'] = all_items
UnboundLocalError: local variable 'api_response' referenced before assignment

Expected behavior
Scan should complete, and I should be able to load the updated models into the browser.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

  • Extension version: 73f84dda
  • OS: Windows 11
  • SD version: 1.6.0
  • Python: 3.10.8
  • Any Additional info

[Bug]: AttributeError: 'Textbox' object has no attribute 'input'

Describe the bug.

After installing and reloading to apply, the extension does not come up in the navigation tab and gives an error in the console

Steps to reproduce the problem.

  1. Install the extension from the webui
  2. Apply and reload extensions

Expected behavior

Should load and work as normal

System info

  • Extension version: 2b64e96
  • OS: Windows 11
  • SD-WebUI version: v1.2.1
  • Python: 3.10.6

Console logs

File "E:\xxx\xxx\stable-diffusion-webui\extensions\sd-civitai-browser-plus\scripts\civitai_gui.py", line 277, in on_ui_tabs
    trained_tags.input(
AttributeError: 'Textbox' object has no attribute 'input'

Additional information

Almost no custom extensions or settings have been added/changed in the webui

Feature Request: Page Selection

This extension is already a dream finally realized for me. Thanks!

Issue: If something goes wrong while browsing many pages, it can be a pain to get back to the last page you were at.

Solution: The page display should instead be a select dropdown, where you can choose the page to jump to (e.g. "2/24",."18/24", and so on).

[BUG] Base Model filtering

Describe the bug
Ineffective model filtering

To Reproduce
Steps to reproduce the behavior:

  1. Filter Base Model: SD 2.0
  2. Content Type: LORA

Expected behavior
I expect to see ONLY LORA for SD 2.0.

Likewise, with any criteria selected, the filter should only return matching content, not display all content using enabled/disabled cards. Displaying the disabled cards provides nothing of value to users.

Why is this bad? When the result displays several valid cards sprinkled amongst the disabled cards and page counter says 1/1043, when does the user stop paging looking for a valid results? If there are hits on the second and third pages, do you expect the user to go through all the pages looking for more?

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

  • Extension version: 768b8dee
  • OS: OS (Windows 10 )
  • SD version: SDWEB
  • Python: Python version in SD-WebUI
  • Any Additional info

Only one file per "Version" can be installed

Describe the bug
For some Datasets/Tools, multiple files are required. My particular problem is with the ControlNet https://civitai.com/models/38784?modelVersionId=67566
Those need the *.safetensor and the .yaml file to run.
When downloading either one of these files the "Version" is shown as installed and no other files can be downloaded for it.

To Reproduce
Steps to reproduce the behavior:

  1. Go to CivitAI Tab and search for "ControlNet 1.1" (Tyoe Controlnet)
  2. Select "Controlnet 1.1 Models", Version "Depth" (for example)
  3. Select the "safetensor" file (name show as Model Filename is *.safetensor") and install
  4. Wait for installation to finish
  5. Select the "other" file (name show as Model Filename is still *.safetensor")
  6. Download Button is still "Delete Model"

Alternative Way:

  1. Download the .YAML File from Civit AI directly
  2. Paste it into the respective folder (Default".\models\ControlNet"
  3. Check the model in the Civit AI Tab
  4. Model shows as "installed"

Expected behavior
When selecting the other file delete should show as "download"
When selecting the other file the name in Model Filename should have the correct suffix

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

  • Extension version: v1.11 (apparently based on [v1.1.0] from SignalFlagZ), checking the repo from SignalFlagZ there seem to be a lot of fixes since 1.1.0, also regarding file naming.

  • OS: OS Windows 10

  • SD version: A1111 version v1.6.0

  • Python: version: python: 3.10.6

  • Any Additional info
    That would be a future request, but for these kind of downloads a "Download all Files" as well as a "Download all Version"/"Download all Versions with all Files" option would be really helpfull.

[Bug]: Adetailer models set to wrong folder.

Describe the bug.

path is supposed to be Models\adetailer , but currently goes to Models\Other.
Was correct a couple of versions ago.

Steps to reproduce the problem.

-click any adetailer model in browser

Expected behavior

saved to adetailer model folder

System info

  • Extension version: v1.14.2
    version: [v1.6.0] โ€€โ€ขโ€€ python: 3.10.6 โ€€โ€ขโ€€ torch: 2.0.1+cu118 โ€€โ€ขโ€€ xformers: 0.0.20 โ€€โ€ขโ€€ gradio: 3.41.2

Console logs

-

Additional information

No response

Error after downloading file

With the latest update, I'm getting an error after downloading a file. I'm sorting by Newest.

It downloads successfully to the correct folder, then this error appears and I have to restart the UI to get the extension to start working again:

Traceback (most recent call last):
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\gradio\blocks.py", line 1323, in process_api
    result = await self.call_function(
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\gradio\blocks.py", line 1051, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "C:\stable-diffusion\automatic1111\extensions\sd-civitai-browser-plus\scripts\civitai-api.py", line 772, in finish_download
    return_value = update_model_list(content_type, sort_type, period_type, use_search_term, search_term, show_nsfw, delete_old_ver)
TypeError: update_model_list() missing 1 required positional argument: 'page_count'

I've restarted a1111 also, same issue.

[BUG] Unable to download model with libaria2.so error

Describe the bug
Not entirely sure what you want to do with this but I thought I'd write it up in case it helps someone else. Feel free to close this if you think this is not needing support or if you find a way to bundle aria2 with the package.

With your recent update in v1.9, you added aria2 as the way to download models. Unfortunately, this requires a dynamic library that is not always present in systems, probably more particularly instances that are in trimmed down docker containers. This will result in the following error when trying to download a model that shows in the logs.

aria2c failed with error: /opt/stable-diffusion/02-sd-webui/webui/extensions/sd-civitai-browser-plus/aria2/aria2c: error while loading shared libraries: libaria2.so.0: cannot open shared object file: No such file or directory

A quick fix is to install aria2 from your package manager.

To Reproduce
Steps to reproduce the behavior:

  1. Go to any model
  2. Download that model
  3. Observe timeout in webui
  4. See error in logs as described above

Expected behavior
Models to download

Additional context
Add any other context about the problem here.

  • Used commit ce7d6cb to get around issue without downloading aria2 but then could use v1.9 when I installed aria2
  • automatic 1111 version: v1.6.0 โ€€
  • python: 3.10.12 โ€€-
  • torch: 2.0.1+cu118 โ€€
  • xformers: 0.0.20 โ€€
  • gradio: 3.41.2 โ€€
  • checkpoint: [879db523c3]

[Feature Request] Speed up downloads by using Aria2

I use stable diffusion with Google Colab.

a feature that I think should be changed is the download process.

please add a download with aria2 so that the download process runs faster, in the current version I almost wait about an hour to download a model, compared to others, the civiai browser you made has very good patches, I look forward to making the download process faster and optimized.

[BUG]

Hello, i"m able to browse civit ai site with the extension but can't download anything

To Reproduce
Steps to reproduce the behavior:

  1. Go to Civit AI tab
  2. Click on 'Refresh'
  3. select a model, VAE, Lora , whatever
    4.Clik Download button
  4. see error
  5. Failed to start download: HTTPConnectionPool(host='localhost', port=6800): Max retries exceeded with url: /jsonrpc (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x2e97d02b0>: Failed to establish a new connection: [Errno 61] Connection refused'))
    Error occured during download of "/Users/lucvaligny/stable-diffusion-webui/models/VAE/vaeFtMse840000Ema_v100.pt".

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

  • Extension version: Version of this extension 10.0
  • OS: Mac osx
  • SD version: A1111 16.0
  • Python: Python version in SD-WebUI 3.10.12
  • Any Additional info

[BUG] Unable to download

I am new to posting on git hub and this is just a weird issue that started today so was wondering if anyone else was having the issue or if someone new how to fix. When i have checkpoints and hit refresh i get this error..

Traceback (most recent call last): | 21/120 [00:02<00:09, 10.75it/s]
File "F:\Art\AI\App\Automatic1111\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "F:\Art\AI\App\Automatic1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
result = await self.call_function(
File "F:\Art\AI\App\Automatic1111\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
prediction = await anyio.to_thread.run_sync(
File "F:\Art\AI\App\Automatic1111\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "F:\Art\AI\App\Automatic1111\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "F:\Art\AI\App\Automatic1111\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, *args)
File "F:\Art\AI\App\Automatic1111\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
response = f(*args, **kwargs)
File "F:\Art\AI\App\Automatic1111\stable-diffusion-webui\extensions\sd-civitai-browser-plus\scripts\civitai_api.py", line 344, in update_model_list
HTML = model_list_html(gl.json_data, model_dict, content_type)
File "F:\Art\AI\App\Automatic1111\stable-diffusion-webui\extensions\sd-civitai-browser-plus\scripts\civitai_api.py", line 168, in model_list_html
if 'baseModel' in item['modelVersions'][0]:
IndexError: list index out of range

is it due to new automatic1111 update or does anyone know a fix for this? I hope i posted this right and any help would be aperciated.

[Bug]: LyCORIS folder is back

Describe the bug.

I have this option selected:

image

But this appears when clicking on a LyCORIS card:

image

Steps to reproduce the problem.

  1. Click LyCORIS model card.
  2. Be haunted by the reappearance of LyCORIS in your path.

Expected behavior

Should point to LORA folder when that option is selected.

System info

  • Extension version: 60e11cb
  • OS: Windows 11
  • SD-WebUI version: 1.6.0
  • Python: 3.10.11
  • Browser: Brave (private mode)

Console logs

None

Additional information

I was able to work around it by unchecking that option, Apply Settings, Reload UI, check it again, Apply Settings, Reload UI.

But it reverted to the same behavior after closing and restarting auto1111. And trying that now does not fix it.

[BUG] Unable to load model info for any model

Describe the bug
All the inputs show "error" when clicking on any model card. No info loads. Looks related to the recent SHA256 change.

To Reproduce
Steps to reproduce the behavior:

  1. Search for models.
  2. Click on a card.

Expected behavior
It should load the info.

Screenshots
image

Additional context

Traceback (most recent call last):
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
    result = await self.call_function(
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "C:\stable-diffusion\automatic1111\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
    response = f(*args, **kwargs)
  File "C:\stable-diffusion\automatic1111\extensions\sd-civitai-browser-plus\scripts\civitai_gui.py", line 668, in update_models_dropdown
    (html, tags, _, DwnButton, _, filelist, filename, id, current_sha256, install_path, sub_folder) = _api.update_model_info(model_name,ret_versions['value'])
  File "C:\stable-diffusion\automatic1111\extensions\sd-civitai-browser-plus\scripts\civitai_api.py", line 628, in update_model_info
    if data.get('sha256').upper() == sha256_value:
AttributeError: 'NoneType' object has no attribute 'upper'

[BUG]

Bug (Assuming it is a bug?)
Textual Inversions to not download - new or updated.

To Reproduce

  1. Go to 'Browser Tab'
  2. Search for any Textual Inversion
  3. Select Download
  4. Status says downloaded:
image
  1. No .pt file downloaded. Only files downloaded:
    /{TI_Name}.json
    /{TI_Name}.preview.png
    /{TI_Name}/version //No Extension
    /{TI_Name}/data.kpl
    /{TI_Name}/data/0 //No Extension
image

.

Expected behavior
Expecting a "{TI_Name}.pt" to be downloaded. Downloading of LoRa etc., is working as expected.

Additional context

  • Extension version: 30c15754
  • OS: OS (Windows)
  • SD version: stable-diffusion-webui
  • Python: 3.10.9
  • Love your work and efforts. Just discovered your extension yesterday, and very impressed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.