generated from autodistill/autodistill-base-model-template
-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
isdir is not supposed to be used with ~:
>>> os.isdir("~/.cache")
False
>>>
It needs to be expanded to the user:
autodistill-grounded-sam-2/autodistill_grounded_sam_2/helpers.py
Lines 73 to 75 in d6eebed
| if not os.path.isdir("~/.cache/autodistill/segment_anything_2/segment-anything-2"): | |
| subprocess.run( | |
| [ |
and you already did in some places, for example just like here:
autodistill-grounded-sam-2/autodistill_grounded_sam_2/helpers.py
Lines 17 to 19 in d6eebed
| AUTODISTILL_CACHE_DIR = os.path.expanduser("~/.cache/autodistill") | |
| GROUDNING_DINO_CACHE_DIR = os.path.join(AUTODISTILL_CACHE_DIR, "groundingdino") |
Metadata
Metadata
Assignees
Labels
No labels