TheLastBen / fast-stable-diffusion

fast-stable-diffusion + DreamBooth
MIT License
7.55k stars 1.31k forks source link

async cloudflare file-get #2922

Open wlvchandler opened 2 months ago

wlvchandler commented 2 months ago

The srv.txt file is not guaranteed to be ready and can throw a fatal index oob exception without an immediately clear reason. Even sleep(4) wasn't enough on every hardware. This is more responsive and avoids guesswork with the timing.

Side note: I tried a "simpler" synchronous version as well of course and they perform the same. But using colab's async loop is better in general for future additions.