lllyasviel / ControlNet

Let us control diffusion models!
Apache License 2.0
30.31k stars 2.72k forks source link

Can not open http://0.0.0.0:7860 #125

Closed nanfang2000 closed 1 year ago

nanfang2000 commented 1 year ago
python gradio_canny2image.py
logging improved.
No module 'xformers'. Proceeding without it.
ControlLDM: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
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
Loaded model config from [./models/cldm_v15.yaml]
Loaded state_dict from [./models/control_sd15_canny.pth]
Running on local URL:  http://0.0.0.0:7860

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

It says to open local URL but I can not open http://0.0.0.0:7860

csrqli commented 1 year ago

Try setting

block.launch(server_name='localhost')

chky commented 1 year ago

Try setting

block.launch(server_name='localhost')

it works! thank you

nanfang2000 commented 1 year ago

I get it work by setting 127.0.0.1, too. Thanks @Rlee719 !

eniora commented 1 year ago

Sorry but where do I set this?

Edit: nvm found it, thought it's a commandline argument 😁 but had to change it in the actual .py file.

Dharshan049 commented 10 months ago

sorry where to Try setting

block.launch(server_name='localhost')

Wei-1989 commented 6 months ago

I modify the code in "gradio_fake_scribble2image.py" and "gradio_scribble2image.py". And it works. if you use pycharm. try press double "shift" for quick search"block.launch"