Giter Club home page Giter Club logo

sd-webui-llul's People

Contributors

hnmr293 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sd-webui-llul's Issues

Runtime error with "lerp_kernel_scalar" not implemented for 'Half'

Show error on M2 pro, pytorch, I use --upcast-sampling --opt-sub-quad-attention --use-cpu interrogate and torch==2.0.0.dev20230131

Error completing request████████████████████▋                                               | 4/12 [00:01<00:03,  2.29it/s]
Arguments: ('task(cmmoguzralnnpel)', '', '', ['OL'], 12, 2, False, False, 1, 1, 7, -1.0, -1.0, 0, 0, 0, False, 512, 512, False, 0.45, 2, 'R-ESRGAN 4x+', 8, 0, 0, [], 0, False, 'none', 'None', 1, None, False, 'Scale to Fit (Inner Fit)', False, False, 64, 64, 64, 1, False, False, 'none', 'None', 1, None, False, 'Scale to Fit (Inner Fit)', False, False, 64, 64, 64, 1, False, True, 1, 0.15, False, 'OUT', ['OUT'], 5, 0, 'Bilinear', False, 'Pooling Max', False, 'Lerp', '123.7265625', '246.2578125', False, False, 'positive', 'comma', 0, False, False, '', 1, '', 0, '', 0, '', True, False, False, False, 0) {}
...
File "~/Projects/stable-diffusion-webui/extensions/sd-webui-llul/scripts/llul_hooker.py", line 82, in lerp
    return torch.lerp(v0, v1, t)
RuntimeError: "lerp_kernel_scalar" not implemented for 'Half'

ValueError: invalid literal for int() with base 10

I am getting these errors in latest SD WebUI

*** Error running postprocess: D:\Programas\stable-diffusion-webui\extensions\sd-webui-llul\scripts\llul.py,  1.14it/s]
    Traceback (most recent call last):
      File "D:\Programas\stable-diffusion-webui\modules\scripts.py", line 750, in postprocess
        script.postprocess(p, processed, *script_args)
      File "D:\Programas\stable-diffusion-webui\extensions\sd-webui-llul\scripts\llul.py", line 236, in postprocess
        xi0 = int(x)
    ValueError: invalid literal for int() with base 10: '133.1999969482422'

ValueError value changes when the gray box is moved to other place in the canvas. Tried a few things, like disabling Hypertile, AgentAttention, changing resolutions, etc. but nothing worked.

unexpected keyword argument 'force_float' on latest update

Error running process: G:\stable-webui\extensions\sd-webui-llul\scripts\llul.py
Traceback (most recent call last):
File "G:\stable-webui\modules\scripts.py", line 386, in process
script.process(p, *script_args)
File "G:\stable-webui\extensions\sd-webui-llul\scripts\llul.py", line 146, in process
self.last_hooker = Hooker(
TypeError: Hooker.init() got an unexpected keyword argument 'force_float'

import image as reference

As title says, can you make it so that we can drag image into the canvas, like controlnet do? For better visual reference.

ValueError: Only modes ['RGBA', 'CMYK', 'RGBX'] are supported for 4D inputs

When trying to use this in img2img I get below error. The generated file is completely black. Any tips?

Here's my versions:

python: 3.10.6  •  torch: 2.0.0+cpu  •  xformers: N/A  •  gradio: 3.28.1  •  commit: [3284ccc0](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/3284ccc091f09146997fd93bb88a2ecd27ab3a1b)  •  checkpoint: [9aba26abdf](https://google.com/search?q=9aba26abdfcd46073e0a1d42027a3a3bcc969f562d58a03637bf0a0ded6586c9)

[aa47b3ee (Thu May 4 16:14:34 2023)](https://github.com/hnmr293/sd-webui-llul.git/commit/aa47b3eeb45c53f0d6ccaae59abf36e8ed6731f5)

Stacktrace:

Error running postprocess: C:\Users\steve\projects\stable-diffusion-webui-directml\extensions\sd-webui-llul\scripts\llul.py
Traceback (most recent call last):
  File "C:\Users\steve\projects\stable-diffusion-webui-directml\modules\scripts.py", line 444, in postprocess
    script.postprocess(p, processed, *script_args)
  File "C:\Users\steve\projects\stable-diffusion-webui-directml\extensions\sd-webui-llul\scripts\llul.py", line 264, in postprocess
    area_image = tensor_to_pil(area_tensor, mode='RGB')
  File "C:\Users\steve\projects\stable-diffusion-webui-directml\venv\lib\site-packages\torchvision\transforms\functional.py", line 323, in to_pil_image
    raise ValueError(f"Only modes {permitted_4_channel_modes} are supported for 4D inputs")
ValueError: Only modes ['RGBA', 'CMYK', 'RGBX'] are supported for 4D inputs

edit: seems to be a controlnet version issue, other plugins also say the same

Would it be possible to allow resizing the box?

Trying to figure this thing out. As a side note some docs might be helpful for all the advanced knobs.

That said, on main thing stopping me from using this more is the size of the box is often either too big or too small for what I want to do. Would it be possible to allow both moving AND scaling the box?

Work in img2img mode

Hello!

  1. Is it possible to run it in img2img mode? Can't see the difference.

  2. Work fine in txt2img, but with a little bug, If you change the output size, you have to move a bit script's multiply slider forward and back - without that the preview size - that one with gray square - never changing.

Thanks!

I don't know how it works

I don't understand how it works, I select the enabled checkbox, I place the gray square in the place that interests me in the image, I press the generate button and it creates a totally different image instead of improving the area of the image that I wanted . What am I doing wrong? Can you explain to me what are the exact steps of use? Thank you so much.

With the grey box gone, is this extension now permanently broken?

For more than a month now people have been asking about this issue and we have sadly no info. I tried this on A1111, Vlad, after multiple clean installs too, and no, the grey box is gone.

Should we move on? Without that functionality this extensions is sadly pointless

Coordinates, AR and Size

Love this ext. Is it possible to add:

  • coordinates for exact regeneration?
  • aspect ratio for more precise localized upscale?
  • size or percent of box?

cheers!

Could you add "select upscale model" options?

I'm not sure if my understanding is right
This extension is using default Latent model to upscale specific area
But can you add an options that user can select different model (or upscale method)?
Like Hires. fix can let user select model from "stable-diffusion-webui\models\ESRGAN"

[Feature] Add X Y positions on screen

Could you add the position of each side of the square or rectangle that appears inside the canvas? That position could also be saved as generation info as it also changes how the image is composed.

Size must be multiple of 64

Error running process: F:\WBC\sdwb\extensions\sd-webui-llul\scripts\llul.py
Traceback (most recent call last):
  File "F:\WBC\sdwb\modules\scripts.py", line 386, in process
    script.process(p, *script_args)
  File "F:\WBC\sdwb\extensions\sd-webui-llul\scripts\llul.py", line 112, in process
    raise ValueError(f'Image size must be multiple of 64 for LLuL, but {p.width}x{p.height}.')
ValueError: Image size must be multiple of 64 for LLuL, but 608x448.

So, it's not possible to use LLuL with an image size that's not a multiple of 64?

upd1: Please, if you know how to fix this, I would appreciate it. If it can't be fixed, how do I apply llul to images whose resolutions are not a multiple of 64? Inpainting?

Size mismatch

41c2b0e18d7ca8a7c0fcf2594c5fe699
The size of tensor a (1024) must match the size of tensor b (512), and LLuL does not have the capability to adjust the size

macOS ffmpeg issue

I kept getting error about ffmpeg module not found after installing the extension. How to fix this?

I did try pip3 install ffmpeg-python, but since I am using webUI Automatic1111, I can't seem to install it there in their virtual environment.

Traceback (most recent call last):
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/ffmpy.py", line 93, in run
    self.process = subprocess.Popen(
  File "/opt/homebrew/Cellar/[email protected]/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/opt/homebrew/Cellar/[email protected]/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1847, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1013, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 911, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/components.py", line 1830, in preprocess
    ff.run()
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/ffmpy.py", line 98, in run
    raise FFExecutableNotFoundError(
ffmpy.FFExecutableNotFoundError: Executable 'ffmpeg' not found
Traceback (most recent call last):
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/ffmpy.py", line 93, in run
    self.process = subprocess.Popen(
  File "/opt/homebrew/Cellar/[email protected]/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 971, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/opt/homebrew/Cellar/[email protected]/3.10.10_1/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1847, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/routes.py", line 337, in run_predict
    output = await app.get_blocks().process_api(
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1013, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py", line 911, in preprocess_data
    processed_input.append(block.preprocess(inputs[i]))
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/components.py", line 1830, in preprocess
    ff.run()
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/ffmpy.py", line 98, in run
    raise FFExecutableNotFoundError(
ffmpy.FFExecutableNotFoundError: Executable 'ffmpeg' not found
^Z
zsh: suspended  ./webui.sh --no-half

Dimension and Shape for LLUL

My image is in ratio 3:2 or 2:3, I can't seem to get the LLUL to work properly, as it is complaining:

100%|█████████████████████████████████████████████████████████████████████████████| 16/16 [00:26<00:00,  1.67s/it]
activating extra network lora with arguments [<modules.extra_networks.ExtraNetworkParams object at 0x3be1e31f0>]: RuntimeError
Traceback (most recent call last):
  File "/Users/jimmygunawan/stable-diffusion-webui/modules/extra_networks.py", line 75, in activate
    extra_network.activate(p, extra_network_args)
  File "/Users/jimmygunawan/stable-diffusion-webui/extensions-builtin/Lora/extra_networks_lora.py", line 23, in activate
    lora.load_loras(names, multipliers)
  File "/Users/jimmygunawan/stable-diffusion-webui/extensions-builtin/Lora/lora.py", line 151, in load_loras
    lora = load_lora(name, lora_on_disk.filename)
  File "/Users/jimmygunawan/stable-diffusion-webui/extensions-builtin/Lora/lora.py", line 113, in load_lora
    module.weight.copy_(weight)
RuntimeError: output with shape [96, 320] doesn't match the broadcast shape [96, 320, 96, 320]

ValueError: invalid literal for int() with base 10: '<float>'

Thx for making a nice ext! However, moving the gray box does not seem to work. Is this a bug?

Env
python: 3.9.16
torch: 1.13.1+cu117
xformers: 0.0.14.dev
gradio: 3.16.2
commit: 0cc0ee1b

Error

Error running process: /storage/stable-diffusion/stable-diffusion-webui/extensions/sd-webui-llul/scripts/llul.py
Traceback (most recent call last):
  File "/storage/stable-diffusion/stable-diffusion-webui/modules/scripts.py", line 386, in process
    script.process(p, *script_args)
  File "/storage/stable-diffusion/stable-diffusion-webui/extensions/sd-webui-llul/scripts/llul.py", line 154, in process
    x=int(x) / p.width,
ValueError: invalid literal for int() with base 10: '123.55087280273438'

Unable to upload background

image

Recent versions seem to be failing

edge browser No error reported by cmd
python: 3.10.7  •  torch: 2.0.0+cu118  •  xformers: 0.0.17  •  gradio: 3.23.0  •  commit: [22bcc7b]

no attribute append

Hello,

I just installed this extension yesterday and I thought I wanna try, but it gives me this error

image

Please help, Thanks!

Selection box disappears when minimizing menu

Hello, first off I'm on the newest Auromatic1111 version and downloaded this extension yesterday. I am on Windows 10.

The issue:
As described in the title, the selection boss you can drag around to select the area for enriching the detail disappears if you close the menu (by clicking on the LLuL header) and then reopen it. It cannot be recovered until the UI is reloaded. It works in both txt2img and img2img.

Before:
Before
After:
After

It possible to somehow disable the graybox by making the field 100%?

No gray box after update A1111. But is it possible to somehow disable the gray box by making the field 100%? So that could load masks and work in the mask area? (maybe make Multiplication (2^N) less then 1 or just zero).
Now the mask works, but it is cut off by the area in the center of the image.

llul not loading

llul wasn't showing up and I don't understand any of these words to troubleshoot for myself.

Error loading script: llul.py Traceback (most recent call last): File "E:\stable-diffusion-webui\modules\scripts.py", line 248, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "E:\stable-diffusion-webui\modules\script_loading.py", line 11, 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 "E:\stable-diffusion-webui\extensions\sd-webui-llul\scripts\llul.py", line 194, in <module> init_xyz(Script) File "E:\stable-diffusion-webui\extensions\sd-webui-llul\scripts\llul_xyz.py", line 61, in init_xyz define('Enabled', 0, to_bool, choices=['false', 'true']) File "E:\stable-diffusion-webui\extensions\sd-webui-llul\scripts\llul_xyz.py", line 59, in define data.module.axis_options.append(AxisOption(f'LLuL {param}', type, fn, choices=lambda: choices)) TypeError: AxisOption.__new__() got an unexpected keyword argument 'choices'

Hello, Mask is the size inside that GreyBox? why not the whole image size

This function looks cool, it makes it possible to let img2img use latent .
Why the mask is the size of the grey box, why not the mask of the whole image?,
it's not convinient for mask editing, if you change that mask pic to the resolution of the full image,
it's very easy to make the mask picture, in Photoshop, just take a screen shot of your grey box position, then every child can find that mask area. finally, we just need to cut it to right size.

Positioning problem with resolution other than 512x512

I have a problem with the positioning of the resolution other than 512x512. For example, I use 1024x1024 to generate an image, and put the locator in the lower right corner. The positioning is in the center. If I am using the method incorrectly, please point it out. Thank you.
317B5W553W~XGQ7E(7CIWVJ

recurring issue #6

Hey thanks for your work, I am still getting

RuntimeError: "lerp_kernel_scalar" not implemented for 'Half'

I am running on M1 mac.

new mask feature

A long time ago when I used this, when there was no loading of mask pictures yet, everything was fine, you could choose the location of the interaction (for example, the very top of the picture or the very bottom), but now it is always in the middle, even if you load a mask picture where the white one is only up, it will be somewhere in the middle, and never at the top of the image. I changed the resolution of the mask, made it the same size as the picture, made it square, big and small and nothing helps... it's just always in the middle

Screenshot_9
Screenshot_10
Screenshot_11
Screenshot_12

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.