Giter Club home page Giter Club logo

Comments (4)

LiJT avatar LiJT commented on July 20, 2024

After testing, I found where the issue is!

If I uncheck "save individual images", this same error will be guarranteed.
But sometimes I just wanna save as grid only. to save a bit of space.

Is it fixable?

from stable-diffusion.

hlky avatar hlky commented on July 20, 2024

Pushed major txt2img ui overhaul that has img2img working in my tests
Please update and open a new issue if the problem recurs

from stable-diffusion.

wereii avatar wereii commented on July 20, 2024
Traceback (most recent call last):
  File "C:\Users\PEJO\miniconda3\envs\ldo\lib\site-packages\gradio\routes.py", line 247, in run_predict
    output = await app.blocks.process_api(
  File "C:\Users\PEJO\miniconda3\envs\ldo\lib\site-packages\gradio\blocks.py", line 641, in process_api
    predictions, duration = await self.call_function(fn_index, processed_input)
  File "C:\Users\PEJO\miniconda3\envs\ldo\lib\site-packages\gradio\blocks.py", line 556, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "C:\Users\PEJO\miniconda3\envs\ldo\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "C:\Users\PEJO\miniconda3\envs\ldo\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "C:\Users\PEJO\miniconda3\envs\ldo\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "scripts/webui.py", line 1053, in txt2img
    output_images, seed, info, stats = process_images(
  File "scripts/webui.py", line 969, in process_images
    grid = image_grid(output_images, batch_size)
  File "scripts/webui.py", line 456, in image_grid
    cols = math.ceil(len(imgs) / rows)
ZeroDivisionError: division by zero
Shutting down...

Still getting this error with latest repo (d667ff5) in Test-To-Image, happens only if:

  • Upscale images using RealESRGAN is On (I did get the model and put it into the directory as noted in Installation instructions)
  • Number of images to generate > 1

If the number of images is 1 (with RealESRGAN) then empty data is received thru websocket (nothing shows up).

EDit: Fix faces using GFPGAN seems to cause this error too

from stable-diffusion.

LiJT avatar LiJT commented on July 20, 2024

@wereii Yes I have the exact same error too. Seems it not been fixed.
If I uncheck "save individual images", this same error will still occurs.

@hlky Could you kindly please have a second look at this issue?

from stable-diffusion.

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.