yxKryptonite / OpenFMNav

Official implementation of OpenFMNav: Towards Open-Set Zero-Shot Object Navigation via Vision-Language Foundation Models
https://yxkryptonite.github.io/OpenFMNav
MIT License
27 stars 2 forks source link

the issue about the segment_anything #1

Closed yusirhhh closed 7 months ago

yusirhhh commented 7 months ago

When I run the code, I face the issue about cannot import name 'build_sam_hq'

>>> import segment_anything
>>> from segment_anything import SamPredictor
>>> from segment_anything import sam_model_registry
>>> from segment_anything import build_sam_hq
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'build_sam_hq' from 'segment_anything'
yxKryptonite commented 7 months ago

Please checkout Grounded-SAM to install segment_anything and groundingdino.