Update vision.py

This commit is contained in:
Daniel Han 2024-11-21 02:20:47 -08:00
commit 0570871947

View file

@ -78,8 +78,7 @@ class FastBaseVisionModel:
# Return old flag
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = old_hf_transfer
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
model_patcher.pre_patch()
get_statistics() # For debugging - we use a download counter to see if environments are not breaking
if dtype is None: