Giter Site home page Giter Site logo

Comments (10)

Leon-Schoenbrunn avatar Leon-Schoenbrunn commented on April 28, 2024

After further looking into it, it actually seems like pulling the latest commits from the repo, destroyed the whole img2img page.
Other tasks like Redraw whole image fail due to

  File "----\gradio\routes.py", line 259, in run_predict
    output = await app.blocks.process_api(
  File "----\gradio\blocks.py", line 685, in process_api
    inputs = self.preprocess_data(fn_index, inputs, state)
  File "----\gradio\blocks.py", line 591, in preprocess_data
    processed_input.append(block.preprocess(raw_input[i]))
  File "----\gradio\components.py", line 1321, in preprocess
    im = processing_utils.decode_base64_to_image(x)
  File "----\gradio\processing_utils.py", line 28, in decode_base64_to_image
    content = encoding.split(";")[1]
AttributeError: 'dict' object has no attribute 'split'
Error completing request

Creating a new venv and installing all components via the install instructions yields the same result, so I really hope this error isn't only happening on my end. If further information is needed, I'll gladly provide more.

from stable-diffusion-webui.

AUTOMATIC1111 avatar AUTOMATIC1111 commented on April 28, 2024

i can't seem to reproduce this

did you possibly update script and re-lauch the gradio process with updating the web page?

from stable-diffusion-webui.

AUTOMATIC1111 avatar AUTOMATIC1111 commented on April 28, 2024

created a new venv with python 3.10.6, installed from scratch, everything works

from stable-diffusion-webui.

Leon-Schoenbrunn avatar Leon-Schoenbrunn commented on April 28, 2024

I'm sorry for the confusion. I updated python to 3.10.6 and again followed the instructions in a new venv. Redraw whole image etc. are working again, that might've actually been me somehow messing with the script. The aforementioned problem with inpaint and the ValueError persists though.

from stable-diffusion-webui.

Leon-Schoenbrunn avatar Leon-Schoenbrunn commented on April 28, 2024

The inpainting works in Firefox, but does not work in Chrome Version 104.0.5112.102 (64Bit) and 105.0.5195.54 (64Bit).

from stable-diffusion-webui.

Jonseed avatar Jonseed commented on April 28, 2024

Do you have any extensions loaded in Chrome? Those seem to break inpainting (particularly DuckDuckGo privacy essentials).

from stable-diffusion-webui.

Leon-Schoenbrunn avatar Leon-Schoenbrunn commented on April 28, 2024

Yes, it's gotta be DuckDuckGo.

from stable-diffusion-webui.

aolko avatar aolko commented on April 28, 2024

still broken (inpaint sketch), even in firefox

Error completing request
Arguments: ('task(4in16y6vj7lbij3)', 3, 'thick fake mustache', '__univ_negative__', 'None', 'None', None, None, None, <PIL.Image.Image image mode=RGBA size=1280x720 at 0x18BECB6AF80>, <PIL.Image.Image image mode=RGBA size=1280x720 at 0x18BEC6237F0>, None, None, 60, 0, 4, 100, 1, False, False, 1, 1, 11.5, 0.75, -1.0, -1.0, 0, 0, 0, True, 448, 896, 2, 1, 32, 0, '', '', 0, '<div class="dynamic-prompting">\n    <h3><strong>Combinations</strong></h3>\n\n    Choose a number of terms from a list, in this case we choose two artists: \n    <code class="codeblock">{2$$artist1|artist2|artist3}</code><br/>\n\n    If $$ is not provided, then 1$$ is assumed.<br/><br/>\n\n    If the chosen number of terms is greater than the available terms, then some terms will be duplicated, otherwise chosen terms will be unique. This is useful in the case of wildcards, e.g.\n    <code class="codeblock">{2$$__artist__}</code> is equivalent to <code class="codeblock">{2$$__artist__|__artist__}</code><br/><br/>\n\n    A range can be provided:\n    <code class="codeblock">{1-3$$artist1|artist2|artist3}</code><br/>\n    In this case, a random number of artists between 1 and 3 is chosen.<br/><br/>\n\n    Options can be given weights:\n    <code class="codeblock">{2::artist1|artist2}</code><br/>\n    In this case, artist1 will be chosen twice as often as artist2.<br/><br/>\n\n    Wildcards can be used and the joiner can also be specified:\n    <code class="codeblock">{{1-$$and$$__adjective__}}</code><br/>\n\n    Here, a random number between 1 and 3 words from adjective.txt will be chosen and joined together with the word \'and\' instead of the default comma.\n\n    <br/><br/>\n\n    <h3><strong>Wildcards</strong></h3>\n    Find and manage wildcards in the Wildcards Manager tab.\n\n    <br/><br/>\n\n    <small>You can add more wildcards by creating a text file with one term per line and name is mywildcards.txt. Place it in D:\\tmp\\stable-diffusion-new2\\extensions\\sd-dynamic-prompts\\wildcards. <code class="codeblock">__&#60;folder&#62;/mywildcards__</code> will then become available.</small>\n</div>\n\n', True, False, 1, False, False, False, 1.1, 1.5, 100, 0.7, False, False, False, False, False, False, None, '', 'Get Tags', '<ul>\n<li><code>CFG Scale</code> should be 2 or lower.</li>\n</ul>\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 1, '<p style="margin-bottom:0.75em">Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8</p>', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, False, False, '', '<p style="margin-bottom:0.75em">Will upscale the image by the selected scale factor; use width and height sliders to set tile size</p>', 64, 0, 2, 1, '', 0, '', True, False, False, '<p style="margin-bottom:0.75em">Recommended settings: Use from inpaint tab, inpaint at full res ON, denoise <0.5</p>', 'None', 30, 4, 0, 0, False, 'None', '<br>', 'None', 30, 4, 0, 0, 4, 0.4, True, 32, False, 4.0, '', 10.0, False, False, True, 30.0, True, False, False, 0, 0.0, 'fixed', 1, 'linear', '30', 'grad_min', 0.01, 1, 'clip', 1.0, 1.0, 'mp4', 10.0, 0, '', True) {}
Traceback (most recent call last):
  File "D:\tmp\stable-diffusion-new2\modules\call_queue.py", line 56, in f
    res = list(func(*args, **kwargs))
  File "D:\tmp\stable-diffusion-new2\modules\call_queue.py", line 37, in f
    res = func(*args, **kwargs)
  File "D:\tmp\stable-diffusion-new2\modules\img2img.py", line 148, in img2img
    processed = process_images(p)
  File "D:\tmp\stable-diffusion-new2\modules\processing.py", line 480, in process_images
    res = process_images_inner(p)
  File "D:\tmp\stable-diffusion-new2\modules\processing.py", line 573, in process_images_inner
    p.init(p.all_prompts, p.all_seeds, p.all_subseeds)
  File "D:\tmp\stable-diffusion-new2\modules\processing.py", line 920, in init
    mask = mask.crop(crop_region)
  File "D:\tmp\stable-diffusion-new2\venv\lib\site-packages\PIL\Image.py", line 1171, in crop
    raise ValueError("Coordinate 'right' is less than 'left'")
ValueError: Coordinate 'right' is less than 'left'

from stable-diffusion-webui.

yogo1212 avatar yogo1212 commented on April 28, 2024

I'm sorry to also bump this... but the issue with values being swapped in the tuple returned by doesn't have anything to do with duckduckgo, or not?

pad being 0 and crop_* being w and h?

    return (
        int(max(crop_left-pad, 0)),
        int(max(crop_top-pad, 0)),
        int(min(w - crop_right + pad, w)),
        int(min(h - crop_bottom + pad, h))
    )

from stable-diffusion-webui.

aglines avatar aglines commented on April 28, 2024

Found a solution that worked for me at least, using latest commit & model v1.5. in firefox, Duckduckgo privacy essentials can be whitelisted for 127.0.0.1, (gear symbol in extension is available on 'normal' sites, add unprotected site.) I also whitelisted it in several other privacy extensions. Error is now gone for inpaint.

from stable-diffusion-webui.

Related Issues (20)

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.