remove dependency on timm/resnet18.a1_in1k when using Padim() #2354
Unanswered
lilz-egoto
asked this question in
Q&A
Replies: 2 comments
-
@lilz-egoto I feel that'd be on the anomalib Padmin to allow disabling timm pretrained load when it's not needed, is there not a flag? timm weights usually check the HF hub if pretrained is enable to ensure up to date weights being used (even if DL not needed). Can run with HF_HUB_OFFLINE=1 in env to disable the check and use whatever is currently in cache (does need something in cache though). |
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh woops, I thought this was anomalib, I'll make a post there |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have something that uses
anomalib.models.Padim()
and I have noticed that everytime that it is called, it downloads a model from an external sourcehttps://huggingface.co:443 "HEAD /timm/resnet18.a1_in1k/resolve/main/model.safetensors HTTP/11" 302 0
. Is it possible to just have this downloaded locally and have the library refer to the local file? I have combed through documentation and tried fiddling with the class and methods, but there doesn't seem to be a way to do this.Beta Was this translation helpful? Give feedback.
All reactions