Coder Social home page Coder Social logo

qunash / stable-diffusion-2-gui Goto Github PK

View Code? Open in Web Editor NEW
605.0 14.0 75.0 112 KB

Lightweight Stable Diffusion v 2.1 web UI: txt2img, img2img, depth2img, inpaint and upscale4x.

License: MIT License

Jupyter Notebook 98.85% CSS 1.15%
image-generation stable-diffusion

stable-diffusion-2-gui's Introduction

stable-diffusion-2-gui's People

Contributors

j-halloran avatar qunash 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  avatar  avatar  avatar  avatar

stable-diffusion-2-gui's Issues

Connection errored out

Randomly losing the connection, without any info in the output cell. I have to restart the cell to fix the issue

can't run app on colab,got error.

when I click play button of run the app section,got an error:

OSError: [Errno 36] File name too long: '.main-div div{display:inline-flex;align-items:center;gap:.8rem;font-size:1.75rem}.main-div div h1{font-weight:900;margin-bottom:7px}.main-div p{margin-bottom:10px;font-size:94%}a{text-decoration:underline}.tabs{margin-top:0;margin-bottom:0}#gallery{min-height:20rem}\n'

Error when wanting to upscale

I kept getting this:
upscale() takes 7 positional arguments but 8 were given

I think 4x upscale should just be a button. Not drag and drop and needing prompting. But I am curious how it could actually work, if it can add details while upscaling.

Colab - Cuda OOM

After trying Depth-to-Image model a 4 or 5 times, I got this error.

CUDA out of memory. Tried to allocate 6.78 GiB (GPU 0; 14.76 GiB total capacity; 6.31 GiB already allocated; 5.71 GiB free; 7.80 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

I'm not sure if something wrong happens with the D2I model. Just letting you know!

Local Models

Where in the code should local models be specified?

Colab not working

Hey, as I run the colab cells I'm getting this error:

NameError Traceback (most recent call last) [<ipython-input-2-c92a6aca1dc2>](https://localhost:8080/#) in <module> 413 414 gallery = gr.Gallery(label="Generated images", show_label=False).style(grid=[2], height="auto") --> 415 state_info = gr.Textbox(label="State", show_label=False, max_lines=2, interactive=false).style(container=False) 416 error_output = gr.Markdown(visible=False) 417

Maximum seed length?

It seems like everything after the first 288 characters of the prompt is discarded. Is this correct? Is there a way to raise this limit? Thanks.

Upscaling yields broken images

Hi,

thanks for building this. I managed to use the upscaler on a 768x image the first time I used the plugin but after that I get broken images after upscaling, also for 512x. The image is displayed in preview but when I try to open / download it, it breaks halfway through loading.

  • Do you think the reason might be related to limited RAM in colabs?
  • Does the upscaler work for you?

Sampling methods

Hello, I wanted to ask which is the sampling method used for this tool, as I was unable to find any reference in the code

Show the seed of the generated image

I have tried many notebooks and yours is the simplest, fastest and most stable of them all! The only function I miss is to see the seed of the image I just generated

Incompatible torch

After about 2 weeks from last usage, I ran the code, but now I get an error that doesn't let to use SD.

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. torchaudio 2.0.2+cu118 requires torch==2.0.1, but you have torch 1.13.1 which is incompatible. torchdata 0.6.1 requires torch==2.0.1, but you have torch 1.13.1 which is incompatible. torchtext 0.15.2 requires torch==2.0.1, but you have torch 1.13.1 which is incompatible. torchvision 0.13.1+cu113 requires torch==1.12.1, but you have torch 1.13.1 which is incompatible.

When creating in 'Text to Image', it shows a few other errors and the waiting icon keeps infinitely long. Setting to img2img or other options, it doesn't rearrange the box (the field to upload an image file doesn't even show up).

Missing Licence

This is a really nice bit of code. Have you considered adding a licence (so others can build on it) or is to remain closed source?

img2img error

I cant get img2img to work. I am getting this error:

Error
Pipeline <class 'diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion_img2img.StableDiffusionImg2ImgPipeline'> expected {'unet', 'text_encoder', 'scheduler', 'feature_extractor', 'vae', 'safety_checker', 'tokenizer'}, but only {'unet', 'text_encoder', 'scheduler', 'vae', 'tokenizer'} were passed.

Crash when switching mode

The runtime crashes sometime when switching between 2 modes, and in my trials, everytime I switch from img2img to text2img

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.