File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,7 @@ segment-anything-py
22opencv-python
33pycocotools
44matplotlib
5- onnxruntime ; python_version < '3.11'
6- onnx
5+ huggingface_hub
76geopandas
87rasterio
98tqdm
Original file line number Diff line number Diff line change 1111from PIL import Image
1212from segment_anything import sam_model_registry
1313from segment_anything import SamPredictor
14+ from huggingface_hub import hf_hub_download
1415from .common import *
1516
1617try :
2930 from groundingdino .util .inference import predict
3031 from groundingdino .util .slconfig import SLConfig
3132 from groundingdino .util .utils import clean_state_dict
32- from huggingface_hub import hf_hub_download
33+
3334except ImportError :
3435 print ("Installing GroundingDINO..." )
3536 install_package ("groundingdino-py" )
You can’t perform that action at this time.
0 commit comments