bes-dev / stable_diffusion.openvino

Apache License 2.0
1.53k stars 205 forks source link

Your app is having trouble loading the streamlit_drawable_canvas.st_canvas component #35

Open dervish54 opened 2 years ago

dervish54 commented 2 years ago

I get this message in the web ui when I click on init_image.

Your app is having trouble loading the streamlit_drawable_canvas.st_canvas component.

(The app is attempting to load the component from ****, and hasn't received its "streamlit:componentReady" message.)

If this is a development build, have you started the dev server?
If this is a release build, have you compiled the frontend?
For more troubleshooting help, please see the [Streamlit Component docs](https://docs.streamlit.io/library/components) or visit our [forums](https://discuss.streamlit.io/).

image

New generations start by itself, without my initiative after I pressed the button. When the generation is completed, and the next one immediately begins, and so on indefinitely, until I interrupt the execution of the script in console. output.png is not overwritten, new images do not appear in the browser window. When I change the generation settings in the UI, they affect the next generation (in any case, the number of steps), but incorrectly. For example, I changed the number of steps from 32 to 31, and the generation beganwith 18 steps.

After a few iterations, the gui for inpainting loaded, and I drew a mask on the image that I downloaded earlier (which probably started an endless cycle of generations), and the new generations that I see in the browser console match the expectation from such inpainting.

image

Gather usage stats:  true
5.0803492a.chunk.js:2 Unrecognized feature: 'ambient-light-sensor'.
A @ 5.0803492a.chunk.js:2
5.0803492a.chunk.js:2 Unrecognized feature: 'battery'.
A @ 5.0803492a.chunk.js:2
5.0803492a.chunk.js:2 Unrecognized feature: 'layout-animations'.
A @ 5.0803492a.chunk.js:2
5.0803492a.chunk.js:2 Unrecognized feature: 'legacy-image-formats'.
A @ 5.0803492a.chunk.js:2
5.0803492a.chunk.js:2 Unrecognized feature: 'oversized-images'.
A @ 5.0803492a.chunk.js:2
5.0803492a.chunk.js:2 Unrecognized feature: 'vr'.
A @ 5.0803492a.chunk.js:2
5.0803492a.chunk.js:2 Unrecognized feature: 'wake-lock'.
A @ 5.0803492a.chunk.js:2
DevTools failed to load source map: Could not load content for http://localhost:8501/component/streamlit_drawable_canvas.st_canvas/static/js/2.5ffbf28f.chunk.js.map: Load canceled due to load timeout
DevTools failed to load source map: Could not load content for http://localhost:8501/component/streamlit_drawable_canvas.st_canvas/static/js/main.fac01c65.chunk.js.map: Load canceled due to load timeout
main.fac01c65.chunk.js:1 /media/95f25f493988202165a0299ea05735fabf533c46b092f4013a64b030.png
main.fac01c65.chunk.js:1 {host: 'localhost', port: 8501, basePath: 'component/streamlit_drawable_canvas.st_canvas/index.html'}
main.fac01c65.chunk.js:1 http://localhost:8501/media/95f25f493988202165a0299ea05735fabf533c46b092f4013a64b030.png
dervish54 commented 2 years ago

When the generation is completed, and the next one immediately begins, and so on indefinitely

I'm wrong. It stops after 6th img generating.

upd. I figured out this problem a little better. Image generation starts whenever the pen stops drawing the mask (when I release the lmb). The generate button is not involved in this process at all.