Replies: 2 comments
|
I'm facing the same issue. I'm waiting for a response. |
|
HQ-SAM is still supported in the current In the current source, Install the HQ extra with the same Python interpreter used by the notebook: python -m pip install -U "segment-geospatial[hq]"Then restart the Jupyter kernel/runtime and verify both imports: python -c "from segment_anything_hq import SamPredictor; from samgeo.hq_sam import SamGeo; print(\"HQ-SAM import OK\")"In a notebook, this is safer than a bare import sys
!{sys.executable} -m pip install -U "segment-geospatial[hq]"Restart the kernel after that cell, then: from samgeo.hq_sam import SamGeo
sam = SamGeo(model_type="vit_h", automatic=True)If it still fails, these diagnostics will show whether Jupyter is using a different environment or a local file is shadowing the package: import sys
import segment_anything_hq
print(sys.executable)
print(segment_anything_hq.__file__)The current project metadata explicitly defines the So this is primarily a missing optional-extra issue, not removal of HQ-SAM. The import handler could also be improved to raise the original |
Uh oh!
There was an error while loading. Please reload this page.
When I try importing HQ-SAM:
from samgeo.hq_sam import SamGeoI receive the following error message:
NameError: name 'SamPredictor' is not definedIs HQ-SAM no longer available, or is this a bug I should report?
All reactions