Help with importing SamGeo2 #377
aiEnthusiast2024
started this conversation in
General
Replies: 1 comment
-
I was able to get past this issue by upgrading version of hydra-core |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Is there a document with compatible versions of packages that need to be installed for importing sam2? How do i get past the error below when I try to import SamGeo2? Is python3.10 not compatible? Thank you!
----> 4 from samgeo import SamGeo2
File ~/.conda/envs/geo2/lib/python3.10/site-packages/samgeo/init.py:9
5 version = "0.12.0"
8 from .samgeo import *
----> 9 from .samgeo2 import *
10 from .common import show_image_gui
File ~/.conda/envs/geo2/lib/python3.10/site-packages/samgeo/samgeo2.py:9
7 from tqdm import tqdm
8 from typing import Any, Dict, List, Optional, Tuple, Union
----> 9 from sam2.automatic_mask_generator import SAM2AutomaticMaskGenerator
10 from sam2.sam2_image_predictor import SAM2ImagePredictor
11 from sam2.sam2_video_predictor import SAM2VideoPredictor
File ~/.conda/envs/geo2/lib/python3.10/site-packages/sam2/init.py:7
1 # Copyright (c) Meta Platforms, Inc. and affiliates.
2 # All rights reserved.
3
4 # This source code is licensed under the license found in the
5 # LICENSE file in the root directory of this source tree.
----> 7 from hydra import initialize_config_module
8 from hydra.core.global_hydra import GlobalHydra
10 if not GlobalHydra.instance().is_initialized():
ImportError: cannot import name 'initialize_config_module' from 'hydra' (/.conda/envs/geo2/lib/python3.10/site-packages/hydra/init.py)
Beta Was this translation helpful? Give feedback.
All reactions