deepghs / imgutils

A convenient and user-friendly anime-style image data processing library that integrates various advanced anime-style image processing models
https://dghs-imgutils.deepghs.org/
MIT License
195 stars 16 forks source link

offline mode is enabled. To disable it, please unset the `HF_HUB_OFFLINE` environment variable. #112

Open fallingmeteorite opened 4 days ago

fallingmeteorite commented 4 days ago

When I set the environment variable HF_HUB_OFFLINE=1, The code doesn't load the local model, it throws an exception, but when I use other features, it loads the local model I confirm that the model is cached locally fd2e5342128b8d9b346043ca07c6564d

2dd219d175a1126e31bb4cfba632fbda

The error occurred in anime_face_detection model However, ccip-caformer-24-randaug-pruned model does not report an error when loaded Environment: dghs-imgutils Version: 0.6.0

fallingmeteorite commented 4 days ago

I've found a similar issue:https://github.com/huggingface/optimum/issues/1796