///
This guide will walk you through the installation and initial setup of **sd-webui-infinite-image-browsing**, a powerful and fast image/video/audio browser for various AI web UIs and a standalone appli
159 views
~159 views from guests
Guest views are estimated from total page views. These include anonymous visitors and users who weren't logged in when they viewed the page.
This guide will walk you through the installation and initial setup of sd-webui-infinite-image-browsing, a powerful and fast image/video/audio browser for various AI web UIs and a standalone application.
Infinite Image Browsing (IIB) offers broad compatibility with popular AI image generation tools:
| Software | Support | Provided by |
|---|---|---|
| Stable Diffusion web UI | Supported | Built-in |
| Stable Diffusion web UI (Stealth) | Supported (default: disabled↗) | Built-in |
| ComfyUI | Partially supported | Built-in |
| Fooocus | Supported | Built-in |
| NovelAI | Supported | Built-in |
| StableSwarmUI | Supported | Built-in |
| Invoke.AI | Supported | Built-in |
| Pixiv | Supported | pixiv_iib_plugin↗ |
You can install and run Infinite Image Browsing in three ways: as an extension for SD-webui, as a standalone Python application, or as a desktop application.
This is the most common and recommended way if you use SD-webui.
Extensions tab.Install from URL option.https://github.com/zanllp/sd-webui-infinite-image-browsing into the "URL for extension's git repository" field.Install button and wait for the process to complete.Apply and restart UI to enable the extension. A new "Infinite image browsing" tab will appear in your SD-webui interface.This method allows you to run IIB independently without SD-webui, which is useful for browsing images from other sources like ComfyUI, Fooocus, or NovelAI.
pip available.install.py script handles this, including optional dependencies like hnswlib for advanced search features.
hnswlib or numpy installation fails, you can skip them by setting IIB_SKIP_OPTIONAL_DEPS=1 as an environment variable before running install.py. However, this will disable experimental topic clustering/search features.app.py from the root of the cloned repository.
By default, it will run on
http://127.0.0.1:8000. You can specify a host and port:
A pre-compiled executable version is available for Windows, offering a standalone experience without Python installation.
exe file for your Windows system (e.g., InfiniteImageBrowsing-win-x64.zip)..github/workflows/tauri_app_build.yml in the repository for instructions.After installation, a few steps are crucial to get the most out of Infinite Image Browsing.
For advanced search features to work (e.g., by prompt, model, Lora tags), you need to generate an image index.
(Replace
/path/to/sd-webui/config.json with your actual path).The index is updated incrementally. Subsequent updates check for changes in folders, making the process much faster.
To significantly improve browsing performance, especially for folders with many large images or videos, you can pre-generate thumbnails and video covers.
By default, this only processes
--extra_paths (see below). To process SD-webui paths, use --sd_webui_config with --sd_webui_path_relative_to_config.--gen_cache_verbose to see detailed progress during generation.IIB_CACHE_DIR environment variable.By default, IIB automatically scans directories configured in SD-webui. You can add more folders for browsing and indexing:
--extra_paths argument:
When launching the desktop application for the first time, you may see a modal:
.env file)For advanced control over security and AI features, you can configure environment variables. Create a .env file in the root directory of the extension/application (you can copy .env.example as a template).
IIB_SECRET_KEY):
gradio_auth is enabled in SD-webui, IIB will require a secret key. Define IIB_SECRET_KEY=your_secret_key_here in your .env file. The UI will prompt for this key on access.IIB_ACCESS_CONTROL, IIB_ACCESS_CONTROL_PERMISSION, IIB_ACCESS_CONTROL_ALLOWED_PATHS):
IIB_ACCESS_CONTROL: Set to enable or disable. By default, it's enabled when the service allows public access (e.g., --share, --listen).IIB_ACCESS_CONTROL_PERMISSION: Control permissions (read-write, read-only).IIB_ACCESS_CONTROL_ALLOWED_PATHS: Restrict access to specific paths.OPENAI_API_KEY, OPENAI_BASE_URL, etc.):
OPENAI_BASE_URL: e.g., https://api.openai.com/v1 or your local endpoint.OPENAI_API_KEY: Your API key.EMBEDDING_MODEL: The model to use for embeddings (e.g., text-embedding-3-small).AI_MODEL: The model to use for chat (e.g., gpt-4o-mini).IIB_PROMPT_NORMALIZE=1: Enable prompt normalization to clean boilerplate tags for semantic analysis.IIB_PROMPT_NORMALIZE_MODE: Set to balanced (recommended) or theme_only.IIB_CACHE_DIR): Specify an alternative cache directory for thumbnails and other generated data.You can define rules to automatically apply custom tags to images upon indexing:
Once installed and configured, you can start browsing your images:
Enjoy a seamless and powerful image browsing experience!