huggingface/swift-coreml-diffusers

Downloaded models disappearing?

gary149 opened this issue · 10 comments

I switched to stable-diffusion-2-base, I think there was an error with it then going back to stable-diffusion-2-1-base it's downloading again as if it was never here. Reveal in finder... doesn't open anything too and there's no more models in /Library/Containers/com.huggingface.Diffusers/Data/Library/Application Support

image

Interesting, thanks @gary149! I could reproduce the "Reveal in finder..." bug (it doesn't open Finder if the model currently selected is not downloaded), but I could not reproduce the other behavior yet (models are downloaded again, but they remain unavailable according to your screenshot).

Did you get a chance to see what sort of error happened when you switched to stable-diffusion-2-base? Also, I assume this refers to the App Store build, is that right?

Did you get a chance to see what sort of error happened when you switched to stable-diffusion-2-base?

No sadly, but I can try to reproduce.

Also, I assume this refers to the App Store build, is that right?

Testflight (version 1.1)

Testflight (version 1.1)

There was a bug in that version related to downloading, but I'm not sure it would exhibit the behavior you've seen.

I'll create a TestFlight build with the fix for the "Reveal" bug so you can easily check the actual contents of the sandbox folder.

@gary149 a new TestFlight build (1.1.1) is up, could you try to reproduce there? (And Reveal in Finder should work consistently).

Cannot reproduce 👍

This happened to me when I tried selecting one of the advanced options like Neural Engine or Neural Engine + GPU. The entire hf-diffusion-models folder disappeared.

Were you attempting a download at the time by chance? I think this may be a new bug, potentially introduced when Path swift package was removed, where the models folder is deleted when an unzip action fails.
Edit: in 68 @pceunca shared "The SDXL models are only available for GPU, but you are allowed to select the Neural Engine. If you do, the contents of the models folder may be removed. This is yet to be fixed." So it looks like there are two similar bugs crawling around in there.

I don't recall if I was attempting a download at the same time, but since the downloads are large, it's not ideal to have it delete them without asking.

cmdrf commented

I have the same problem on my MacBook M1 14". Every time I switch models, the entire hf-diffusion-models directory disappears from ~/Library/Application Support and models are re-downloaded. The very same application binary works totally fine on a 2019 Mac Pro, where I originally compiled it.

I had the App Store version installed before on the MacBook, which worked fine.

Could this be a sandboxing/quarantine issue of some sort?

Thanks for the report, I'll try to reproduce!