huchenlei / sd-webui-openpose-editor

Openpose editor for ControlNet. Full hand/face support.
MIT License
664 stars 66 forks source link

[Bug]: The openpose-editor does not show up in RUNPOD Fast Stable Diffusion #37

Closed jimlin1668478052 closed 1 year ago

jimlin1668478052 commented 1 year ago

Is there an existing issue for this?

What happened?

I use the RunPod Fast Stable Diffusion on Cloudservice Runpod. It uses a Jupyter Lab (Port 8888) to connect to the interface (Port 3000).

When I try to get to the openpose editor by clicking "Edit", I can only see a window without anything:

Screenshot 2023-07-24 201006

Steps to reproduce the problem

  1. ControlNet v1.1.233 input an image
  2. Control type -> Openpose
  3. Run Preprocessor
  4. Click "Edit"

What should have happened?

The normal interface of the openpose editor should come.

Commit where the problem happens

webui: v1.4.1 controlnet: v1.1.233 openpose-editor: 35dd1943

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

No

Console logs

Running on local URL: https://rcud4c01mi5i07-3001.proxy.runpod.net
✔ Connected
Startup time: 29.1s (import torch: 3.3s, import gradio: 0.8s, import ldm: 0.5s, other imports: 2.2s, load scripts: 10.0s, create ui: 11.9s, gradio launch: 0.3s, add APIs: 0.1s).
preload_extensions_git_metadata for 33 extensions took 0.69s
2023-07-25 03:08:59,288 - ControlNet - INFO - Preview Resolution = 512

Browser logs

Mixed Content: The page at 'https://rcud4c01mi5i07-3000.proxy.runpod.net/' was loaded over HTTPS, but requested an insecure resource 'http://100.65.13.115:60811/openpose_editor_index/'. This request has been blocked; the content must be served over HTTPS. openpose_editor.js?1689829721.2718813:4 Uncaught (in promise) TypeError: Failed to fetch at checkEditorAvailable (openpose_editor.js?1689829721.2718813:4:27) at openpose_editor.js?1689829721.2718813:131:5 at openpose_editor.js?1689829721.2718813:139:3 civitai_helper.js?1686112472.0:337 gradio_ver:3.23.0 civitai_helper.js?1686112472.0:438 found active tab: undefined index.js?1686112371.0:1 sd-webui-3d-open-pose-editor: onUiLoaded openoutpaint-ext.js?1686112535.0:117 [openoutpaint] Add message listener 2openoutpaint-ext.js?1686112535.0:184 [openoutpaint] Sending init message index.js?a83964bb:85 i18next: languageChanged zh-TW index.js?a83964bb:85 i18next: initialized Object index.js?a83964bb:85 0.1.18 2023-04-15 06:20:24 662The specified value "[object Object]" cannot be parsed, or is out of range. layers.js?v=26b7436:677 [layers] Collection 'Image Layers' at layers.collections.image registered layers.js?v=26b7436:632 [layers] Layer 'Background' at layers.collections.image.layers.bg registered layers.js?v=26b7436:632 [layers] Layer 'Image' at layers.collections.image.layers.image registered layers.js?v=26b7436:632 [layers] Layer 'Mask Paint' at layers.collections.image.layers.mask registered layers.js?v=26b7436:632 [layers] Layer 'Overlay' at layers.collections.image.layers.overlay registered layers.js?v=26b7436:632 [layers] Layer 'Debug Layer' at layers.collections.image.layers.debug registered openoutpaint-ext.js?1686112535.0:184 [openoutpaint] Sending init message layers.js?v=26b7436:632 [layers] Layer 'Default Image Layer' at layers.collections.image.layers.default registered index.js?a83964bb:102 @mediapipe/pose Module index.js?a83964bb:102 MyPose ƒ Pv(h){var w=this;h=h||{},this.h=new Ch({locateFile:h.locateFile,files:function(M){return[{url:"pose_solution_packed_assets_loader.js"},{simd:!1,url:"pose_solution_wasm_bin.js"},{simd:!0,url:"pose_sol… index.js?a83964bb:3440 create editor (anonymous) @ index.js?a83964bb:3440 openoutpaint-ext.js?1686112535.0:184 [openoutpaint] Sending init message index.js?a83964bb:3305 Infinity% loaded openoutpaint-ext.js?1686112535.0:184 [openoutpaint] Sending init message webui.js?v=ccd423a:38 [webui] key.json loaded successfully webui.js?v=ccd423a:57 [webui] Window is child of 'https://rcud4c01mi5i07-3000.proxy.runpod.net/' index.js?v=d4006e8:181 [index] Fixed host to 'https://rcud4c01mi5i07-3000.proxy.runpod.net' index.js?a83964bb:3419 method GetAppVersion Array(0) index.js?a83964bb:3419 return Object openoutpaint-ext.js?1686112535.0:123 [openoutpaint] Received Init Ack index.js?1686112371.0:1 Method GetAppVersion MessageEvent index.js?a83964bb:3419 method Pause Array(0) index.js?a83964bb:3419 return Object index.js?a83964bb:3305 Infinity% loaded index.js?1686112371.0:1 Method Pause MessageEvent index.js?a83964bb:3305 _o index.js?a83964bb:3305 Array(2) index.js?a83964bb:3419 pushCommand openoutpaint-ext.js?1686112535.0:184 [openoutpaint] Sending init message index.js?v=d4006e8:181 [index] Fixed host to 'https://rcud4c01mi5i07-3000.proxy.runpod.net' openoutpaint-ext.js?1686112535.0:123 [openoutpaint] Received Init Ack 127.0.0.1:7860/sdapi/v1/options:1 Failed to load resource: net::ERR_CONNECTION_REFUSED 127.0.0.1:7860/startup-events:1 Failed to load resource: net::ERR_CONNECTION_REFUSED index.js?v=d4006e8:466 The server seems to be offline. Is host 'https://rcud4c01mi5i07-3000.proxy.runpod.net' correct? checkConnection @ index.js?v=d4006e8:466 index.js?a83964bb:3419 method Pause Array(0) index.js?a83964bb:3419 return Object index.js?1686112371.0:1 Method Pause MessageEvent index.js?v=d4006e8:1298 [index] WebUI Settings set as recommended. index.js?v=d4006e8:1186 Current model: SDv1-5.ckpt [4c86efd062] index.js?a83964bb:3419 method Resume Array(0) index.js?a83964bb:3419 return Object index.js?1686112371.0:1 Method Resume MessageEvent index.js?a83964bb:3419 method Pause Array(0) index.js?a83964bb:3419 return Object index.js?1686112371.0:1 Method Pause MessageEvent DevTools failed to load source map: Could not load content for chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/sourceMap/chrome/scripts/iframe_form_check.js.map: System error: net::ERR_BLOCKED_BY_CLIENT DevTools failed to load source map: Could not load content for chrome-extension://fheoggkfdfchfphceeifdbepaooicaho/sourceMap/chrome/scripts/iframe_form_detection.js.map: System error: net::ERR_BLOCKED_BY_CLIENT

Additional information

It would be good if the openpose editor can be run in a new tab besides coming to a bumped-out window.

huchenlei commented 1 year ago

See https://github.com/huchenlei/sd-webui-openpose-editor/issues/27. I think the problem here is somehow the page’s base url is an ip address. You can try to directly visit that ip address in the browser and see if the issue is resolved.

huchenlei commented 1 year ago

Closing for inactivity.