basujindal / stable-diffusion

Optimized Stable Diffusion modified to run on lower GPU VRAM
Other
3.14k stars 467 forks source link

Gradio Not Opening - stuck with Public Link Note #216

Closed RWink314 closed 1 year ago

RWink314 commented 1 year ago

Hello, First great tool - really enjoying being able to get SD to work on my machine. Second, I have a similar issue to the OP - I am trying to get Gradio to launch but it is giving me errors below for both txt2img and img2img Richard

(ldm) C:\stable-diffusion\stable-diffusion-main>python optimizedSD/txt2img_gradio.py Loading model from models/ldm/stable-diffusion-v1/model.ckpt Global Step: 470000 UNet: Running in eps-prediction mode CondStage: Running in eps-prediction mode FirstStage: Running in eps-prediction mode making attention of type 'vanilla' with 512 in_channels Working with z of shape (1, 4, 32, 32) = 4096 dimensions. making attention of type 'vanilla' with 512 in_channels C:\Users\winke\anaconda3\envs\ldm\lib\site-packages\gradio\utils.py:56: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. if StrictVersion(latest_pkg_version) > StrictVersion(current_pkg_version): C:\Users\winke\anaconda3\envs\ldm\lib\site-packages\gradio\utils.py:56: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. if StrictVersion(latest_pkg_version) > StrictVersion(current_pkg_version): Running on local URL: http://127.0.0.1:7860/

To create a public link, set share=True in launch(). ^C

(ldm) C:\stable-diffusion\stable-diffusion-main>python optimizedSD/img2img_gradio.py Loading model from models/ldm/stable-diffusion-v1/model.ckpt Global Step: 470000 UNet: Running in eps-prediction mode CondStage: Running in eps-prediction mode FirstStage: Running in eps-prediction mode making attention of type 'vanilla' with 512 in_channels Working with z of shape (1, 4, 32, 32) = 4096 dimensions. making attention of type 'vanilla' with 512 in_channels C:\Users\winke\anaconda3\envs\ldm\lib\site-packages\gradio\utils.py:56: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. if StrictVersion(latest_pkg_version) > StrictVersion(current_pkg_version): C:\Users\winke\anaconda3\envs\ldm\lib\site-packages\gradio\utils.py:56: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. if StrictVersion(latest_pkg_version) > StrictVersion(current_pkg_version): Running on local URL: http://127.0.0.1:7860/

To create a public link, set share=True in launch(). ^C (ldm) C:\stable-diffusion\stable-diffusion-main>

RWink314 commented 1 year ago

found that if I put the local url in chrome then it worked per the design...