alulkesh / sd_grid_add_image_number Goto Github PK
View Code? Open in Web Editor NEWAdd the image's number to its picture in the grid
License: The Unlicense
Add the image's number to its picture in the grid
License: The Unlicense
Hi!
Somehow, your extension messes up the settings page. Please check the thread here -> vladmandic/automatic#1392
Many thanks!
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
I am not able to get this to work. No numbers show up, despite it being checked in options.
Got an error from this extension stating these two modules were not installed.
I had to manually pip install these two modules in my venv.
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!
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
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)
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:
Every time using batch in txt2img, if select any img send to img2img or inpaint, the superimpose number also included, it is possible to fix it?
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
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.