imaginAIry
imaginAIry copied to clipboard
won't run without network connection
even if model/config etc in cache.. found this one accidentally.. 7.6.0 (OSX, Python venv 3.10.8)
I noticed recently that the first step is always (well what's output to console anyway) to go to the network to download model even when model is in cache.. not sure if this logic was changed at some point or for some reason..
Ideally of course : cache check first, then get model from network, and if network fails a graceful exit with error message..
thanks for all the latest adds + fixes!
Oh I see it says downloading every time. I dug into it and looks like a bug in huggingface-hub. Will fix.
When you've fixed this bug please consider informing the community that the initial download is 4.27GB. That's not nothing. If there's a way to remove this data when we're housecleaning our computers that would be sweet indeed.
@johnblommers the requirements already state
~10 gb space for models to download
I've made a pull request into the hugging-face hub library to fix this. If that's not fixed in a timely fashion I can make a workaround. https://github.com/huggingface/huggingface_hub/pull/1306
12 hours wasn't fast enough. just released 8.0.5 has fix/workaround.
Um, I still have this problem and run current versions… is this fixed, a different bug, or am I holding it wrong?
Problem: If my computer is offline, Imaginairy aborts with an error, no image generation possible.
Error: requests.exceptions.ConnectionError: (MaxRetryError('HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/stabilityai/stable-diffusion-xl-base-1.0/revision/462165984030d82259a11f4367a4eed129e94a7b (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x154349450>: Failed to resolve 'huggingface.co' ([Errno 8] nodename nor servname provided, or not known)"))'), '(Request ID: 3816a0d4-9d26-4771-8599-eeaafc70c60d)')
Context: imaginAIry 14.1.1 Python 3.10.13 Macos 14.3 (23D56), M1
On first generation with a model, it of course has to download the weights. If you're saying that the weights were already downloaded, I'll look into it more.
yes, the weights are definitely downloaded and locally available. should be easily reproducible, at least in my case, i can't generate anything at all when offline, just aborts throwing this error.
if helpful: if i start my program while online and generate an image, then kill the internet connection while my code is still running, i can still keep generating. however if i now (while offline) stop and restart my program, it fails.