Code Monkey home page Code Monkey logo

sd-masonry's Introduction

sd-masonry

A custom image browser extension for AUTOMATIC1111/stable-diffusion-webui.

Gallery View

Gallery View

Photo View

Lightbox

Installation

The extension can be installed directly from within the Extensions tab within the Webui.

Manual install from within the webui directory:

git clone https://github.com/bit9labs/sd-masonry extensions/sd-masonry

and restart your stable-diffusion-webui, then you can see the new tab "Masonry Browser".

Hotkeys

Key Combination Action
Shift + Q First Page
Q Previous Page
E Next Page
Shift + E Last Page
A* Previous Image
D* Next Image

When lightbox is Open *

Recent updates

  • Support for SQLite
  • Remove dependency on PhotoswipeJS
  • Meta information in individual view
  • Hotkeys support

Roadmap

  • Ability to push selecteed image to t2i and i2i

Credit

I was inspired by stable-diffusion-webui-images-browser

sd-masonry's People

Contributors

bit9labs avatar

Stargazers

Jonas Bengtsson avatar  avatar Gabriel avatar I.N.K.Y avatar  avatar V--R avatar Shane Holloman avatar  avatar  avatar Juan Sebastian Giraldo avatar Edward Johan avatar

Watchers

 avatar

sd-masonry's Issues

No support for dark theme ...

Using dark theme, the metadata fields do not display data (at least it seems so ...):
image

If marking a range, the text becomes visible:
image

I think this is, because this extension does not use the themes color settings and does not set the font color by it self. So it uses the predefined font color from the theme, which is in this case, a bright gray ... and almost invisible on the gray field.

At least to define the font color as "black" (in css: .info-group * {color: black;}) could solve the problem.

incompatible with current dev branch

well some feedback as you requested AUTOMATIC1111/stable-diffusion-webui#12225

I did a quick test and found that your extension is not compatible with current dev branch AUTOMATIC1111/stable-diffusion-webui@541ef92
the web UI server back in successfully launched but the front end web page wasn't able to load and hangs when your extension is installed
a possible cause is that we switch to gradio 3.39

lol, just realized you're you're the author of sd-ratio-lock
AUTOMATIC1111/stable-diffusion-webui-extensions#164

sqlite3.OperationalError: no such table: images

Sometimes, when I just clone the extension repository into my AUTO folder and restart, I get an error that the extension can't find the Images table in the DB. Perhaps some kind of error checking for this would help?

[AUTO] *** Error executing callback ui_tabs_callback for /opt/rd/stable-diffusion-webui/extensions/sd-masonry/scripts/main.py
[AUTO] Traceback (most recent call last):
[AUTO] File "/opt/rd/stable-diffusion-webui/modules/script_callbacks.py", line 166, in ui_tabs_callback
[AUTO] res += c.callback() or []
[AUTO] File "/opt/rd/stable-diffusion-webui/extensions/sd-masonry/scripts/main.py", line 157, in on_ui_tabs
[AUTO] html = refresh_images(1)
[AUTO] File "/opt/rd/stable-diffusion-webui/extensions/sd-masonry/scripts/main.py", line 150, in refresh_images
[AUTO] traverse_all_files(dir_path)
[AUTO] File "/opt/rd/stable-diffusion-webui/extensions/sd-masonry/scripts/main.py", line 36, in traverse_all_files
[AUTO] c.execute("DELETE FROM images")
[AUTO] sqlite3.OperationalError: no such table: images
[AUTO]
[AUTO] ---

Spinning Wheel - Never Loads

The tab never loads.
I do use a custom output folder in the settings.

Arguments:
--listen --port 7799 --api --xformers --medvram-sdxl --enable-insecure-extension-access --disable-safe-unpickle
--styles-file E:\AI\MODELS\styles-full.csv
--ckpt-dir E:\AI\MODELS\Stable-diffusion
--lora-dir E:\AI\MODELS\LoRA
--embeddings-dir E:\AI\MODELS\Embeddings

Output directory for T2I
E:\AI\Output\Txt2img

2023-09-11 10_42_15-NVIDIA GeForce Overlay DT

I get no errors in the console.

----------------------------------------------------------------------------
venv "E:\AI\A1111\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Checking ReActor requirements... Ok
You are up to date with the most recent release.
Launching Web UI with arguments: --listen --port 7799 --api --update-check --xformers --medvram-sdxl --enable-insecure-extension-access --disable-safe-unpickle --gradio-auth xxx:xxx --styles-file E:\AI\MODELS\styles-full.csv --ckpt-dir E:\AI\MODELS\Stable-diffusion --lora-dir E:\AI\MODELS\LoRA --embeddings-dir E:\AI\MODELS\Embeddings
Civitai Helper: Get Custom Model Folder
Civitai Helper: Load setting from: E:\AI\A1111\extensions\Civitai-Helper-axilesoft\setting.json
2023-09-11 10:40:25,496 - ControlNet - INFO - ControlNet v1.1.410
ControlNet preprocessor location: E:\AI\A1111\extensions\Controlnet\annotator\downloads
2023-09-11 10:40:25,635 - ControlNet - INFO - ControlNet v1.1.410
sd-webui-prompt-all-in-one background API service started successfully.
10:40:26 - ReActor - STATUS - Running v0.4.1
[-] ADetailer initialized. version: 23.9.2, num models: 12
Loading weights [f0d4872d24] from E:\AI\MODELS\Stable-diffusion\Z-Inpainting\Realistic Vision 5.1-inpainting.safetensors
3440 1440
1390
Creating model from config: E:\AI\A1111\configs\v1-inpainting-inference.yaml
Applying attention optimization: xformers... done.
Model loaded in 4.3s (load weights from disk: 0.9s, create model: 0.5s, apply weights to model: 0.8s, load textual inversion embeddings: 1.2s, calculate empty prompt: 0.8s).
Running on local URL:  http://0.0.0.0:7799

To create a public link, set `share=True` in `launch()`.
Startup time: 31.5s (prepare environment: 4.2s, import torch: 6.6s, import gradio: 0.8s, setup paths: 0.8s, initialize shared: 0.1s, other imports: 0.5s, setup codeformer: 0.1s, list SD models: 0.4s, load scripts: 5.4s, create ui: 5.2s, gradio launch: 6.9s, app_started_callback: 0.5s).

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.