Giter Club home page Giter Club logo

sd_grid_add_image_number's People

Contributors

alulkesh avatar carlosmachina avatar slapaper 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

Watchers

 avatar

sd_grid_add_image_number's Issues

try to get xyz_plot info from State when not using xyz plot

getting this error when runing normal txt2img grid:

*** Error executing callback image_saved_callback for C:\Users\SLAPaper\workspace\stable-diffusion-webui\extensions\sd_grid_add_image_number\scripts\sd_grid_add_image_number.py
    Traceback (most recent call last):
      File "C:\Users\SLAPaper\workspace\stable-diffusion-webui\modules\script_callbacks.py", line 200, in image_saved_callback
        c.callback(params)
      File "C:\Users\SLAPaper\workspace\stable-diffusion-webui\extensions\sd_grid_add_image_number\scripts\sd_grid_add_image_number.py", line 99, in handle_image_saved
        img_label_x, img_key_x, img_value_x = getaxis_infos(params.p, state.xyz_plot_x)
    AttributeError: 'State' object has no attribute 'xyz_plot_x'

it seems that the plugin fail to check wheather xyz plot is actually running

No numbers show up

I am not able to get this to work. No numbers show up, despite it being checked in options.

Feature request: Adding selected x/y/z values to grid image

First, thanks for this helpful extension. During the use of it, I found out, that it would even more convenient, if we could have the selected x/y values also in the image.
I very often use the x/y for embedding comparisations. So I then mostly use CFG on x and the embedding value on y. Allthough those are labeld as legend, when scanning in fullscreen the single files (on a i.e. 4690 x 26204 pixel sized grid), those legend is not visible anmore.
Therefore it would be fantastic to have a checkbox that enables us to have those values also printed on the images of the grid.
I may suggest displaying x in the upper right, y in the lower left and the number in the lower right corner. Or maybe you make this even customizable. ;)

Again, thanks for this great work!

Problem after WebUI v1.6.0 when using refiner

using refiner will overwrite the checkpoint name in grid with refiner model, rather than the base model, which actually determine the overall image content.
or maybe it's better to seperate the base model and refiner model in grid

ImportError: cannot import name 'Roboto' from 'fonts.ttf' (/workspace/venv/lib/python3.10/site-packages/fonts/ttf/__init__.py)

I am trying the extension on runpod which is ubuntu 22
not working

here error

Restarting UI...
Closing server running on port: 3000
2023-07-07 14:07:31,785 - ControlNet - INFO - ControlNet v1.1.224
Error loading script: sd_grid_add_image_number.py
Traceback (most recent call last):
  File "/workspace/stable-diffusion-webui/modules/scripts.py", line 263, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "/workspace/stable-diffusion-webui/modules/script_loading.py", line 10, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/workspace/stable-diffusion-webui/extensions/sd_grid_add_image_number/scripts/sd_grid_add_image_number.py", line 5, in <module>
    from fonts.ttf import Roboto
ImportError: cannot import name 'Roboto' from 'fonts.ttf' (/workspace/venv/lib/python3.10/site-packages/fonts/ttf/__init__.py)

Feature request: separate setting "Add the image's number to its picture in the grid"

When generating batch (not XYZ) the additional information about style and sampler has been added to the grid.
I suggest the separate setting "Add the image's number to its picture in the grid" for two different parts:

  1. For XYZ-plot (for showing that only on XYZ).
  2. For batch grids without XYZ (for showing that only on grids without XYZ).

изображение

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

Error executing callback image_saved_callback for D:\Projects\SD Portrait Generator\stable-diffusion-webui\extensions\sd_grid_add_image_number\scripts\sd_grid_add_image_number.py
Traceback (most recent call last):
  File "D:\Projects\SD Portrait Generator\stable-diffusion-webui\modules\script_callbacks.py", line 185, in image_saved_callback
    c.callback(params)
  File "D:\Projects\SD Portrait Generator\stable-diffusion-webui\extensions\sd_grid_add_image_number\scripts\sd_grid_add_image_number.py", line 84, in handle_image_saved
    getaxis_value(params.p, img_filename, "xyz_plot_x")
  File "D:\Projects\SD Portrait Generator\stable-diffusion-webui\extensions\sd_grid_add_image_number\scripts\sd_grid_add_image_number.py", line 61, in getaxis_value
    axis_value = os.path.basename(p.sd_model.sd_model_checkpoint)
AttributeError: 'NoneType' object has no attribute 'sd_model'

While doung X/Y matrix with different checkpoints in X, this error poping up in logs for each generated pic.
Nothing else is affected, reporting just in case
Have a nice day

Support Dynamic Prompts Extension

I've longed for the ability to use Dynamic Prompts with a small text overlay. Dynamic Prompts can create hundreds of images because of the combonotorical nature of the propmpts.

Can't install from Automatic1111

Tried to install from Extensions tab and got error:

Error completing request
Arguments: ('https://github.com/AlUlkesh/sd_grid_add_image_number.git', ['localization'], 0) {}
Traceback (most recent call last):
  File "D:\Dev\stable-diffusion-webui\modules\call_queue.py", line 56, in f
    res = list(func(*args, **kwargs))
  File "D:\Dev\stable-diffusion-webui\modules\ui_extensions.py", line 166, in install_extension_from_index
    ext_table, message = install_extension_from_url(None, url)
  File "D:\Dev\stable-diffusion-webui\modules\ui_extensions.py", line 140, in install_extension_from_url
    repo = git.Repo.clone_from(url, tmpdir)
  File "D:\Dev\stable-diffusion-webui\venv\lib\site-packages\git\repo\base.py", line 1148, in clone_from
    return cls._clone(git, url, to_path, GitCmdObjectDB, progress, multi_options, **kwargs)
  File "D:\Dev\stable-diffusion-webui\venv\lib\site-packages\git\repo\base.py", line 1086, in _clone
    finalize_process(proc, stderr=stderr)
  File "D:\Dev\stable-diffusion-webui\venv\lib\site-packages\git\util.py", line 386, in finalize_process
    proc.wait(**kwargs)
  File "D:\Dev\stable-diffusion-webui\venv\lib\site-packages\git\cmd.py", line 502, in wait
    raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git clone -v https://github.com/AlUlkesh/sd_grid_add_image_number.git D:\Dev\stable-diffusion-webui\tmp\sd_grid_add_image_number
  stderr: 'Cloning into 'D:\Dev\stable-diffusion-webui\tmp\sd_grid_add_image_number'...
fatal: unable to access 'https://github.com/AlUlkesh/sd_grid_add_image_number.git/': Recv failure: Connection was reset

Not sure if it should be reported here, or in https://github.com/AUTOMATIC1111/stable-diffusion-webui ?

ReadMe line from bottom of the page also fails, it has redundant "/" in https link
git clone https://github.com/AlUlkesh/sd_grid_add_image_number/ extensions/sd_grid_add_image_number
should be
git clone https://github.com/AlUlkesh/sd_grid_add_image_number extensions/sd_grid_add_image_number

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.