MNeMoNiCuZ / sd-webui-thumbnailizer

A thumbnail gallery / set management tool for Automatic1111 Webui
GNU General Public License v3.0
23 stars 4 forks source link

About Thumbnailizer

Thumbnailizer is an extension for managing and generating multiple sets of thumbnails for checkpoints in Automatic1111.

Easily switch between different sets of thumbnails to see how your checkpoints handle your preset prompts.

It's like an X/Y/Z-grid for checkpoints that you can easily update and always re-visit.

https://github.com/MNeMoNiCuZ/sd-webui-thumbnailizer/assets/60541708/dd04d7b6-6506-4847-8405-b71925e2e6d9

Features

Thumbnail Set Gallery

Switch between different sets of thumbnails for your checkpoints. Compare how all your checkpoints handle the same prompt.

image

Customizable Sets

Easily edit the set list in a .JSON-file format to customize the Set dropdown menu.

image

Thumbnail Set Generation

Batch generate thumbnails for each of your models based on the set file. Generation has settings for how many images to generate, and if it's allowed to override existing thumbnails.

image

Set the [Last Index] to -1 to generate all missing thumbnails for a set, or check the "Overwrite" setting to re-generate all.

Generate for All Sets

image

Use this button to generate thumbnails for all the possible sets from the Sets-dropdown, instead of just the currently selected one.

Use Override Settings

image

_Use this setting to override generation settings from the override_settingsuser.txt-file. This will be created during a first launch if it doesn't exist. This is checked when generation starts and does not require a restart of the webui.

This is meant to let you re-use the same set-prompts but change settings like CFG Scale or add some specific triggers as a prefix for the prompts (useful for Pony-models).

Customizable Blocklist

Use the drop-down model selector to select some models to ignore.

image Use this list disable thumbnail generation for SDXL models if you want to generate them with other settings. You can manually swap between different blocklist files for now.

Blocked Folders / Paths

image You can select entire folders that should be ignored by the tool. Useful if you have models that need specific settings, or want to switch between generating thumbnails for SDXL / SD1.5.

Supports Civitai Helper Thumbnails

If you are already using the Civitai Helper-extension (forked from this one), to download thumbnails and model info, their thumbnails are saved as modelname.preview.png. This is added to the set-list as one of the types, so you can easily switch to the original model thumbnails to view them, even if you are customizing your own sets.

image

Installation

Make sure to disable the Add number to filename when saving option in Settings for A1111 as this may interfere with the generated thumbnails.

You can use the official extension-list and just search for "thumbnailizer": image

Alternatively you can go to the Extensions-tab in A1111 and select the "Install from URL" sub-tab, and paste the URL to this extension there https://github.com/MNeMoNiCuZ/sd-webui-thumbnailizer. Do not forget to restart your A1111 after.

image

You can manually install the extension by downloading this space and placing it in your /stable-diffusion-webui/extensions-folder. To verify the folder structure afterwards, you should have a path like this: \stable-diffusion-webui\extensions\sd-webui-thumbnailizer\scripts\

Known Issues

IndexError: list index out of range

The script failed to count the number of images correctly. Make sure that your Start Index and Stop Index matches the available checkpoints.

AttributeError: 'NoneType' object has no attribute 'get'

Likely an initialization issue. Try force-refreshing your A1111, or restarting the A1111 server completely. Let it finish loading everything before using Thumbnailizer. It's sensitive.

Thumbnails keep getting numbers added to their names (00001- or 00003 etc).

Make sure you disable the Add number to filename when saving option in Settings for A1111 as this interferes with the generated thumbnails.

Changelog