UX-Decoder / Semantic-SAM

[ECCV 2024] Official implementation of the paper "Semantic-SAM: Segment and Recognize Anything at Any Granularity"
2.22k stars 107 forks source link

ModuleNotFoundError: No module named 'detectron2.modeling' #96

Open p1yush99 opened 2 months ago

p1yush99 commented 2 months ago

When installing libraries into colab, !python -m pip install --quiet 'git+https://github.com/MaureenZOU/detectron2-xyz.git' not working so in installed detectron2 by the below method !git clone https://github.com/facebookresearch/detectron2.git

Now, when importing from semantic_sam import prepare_image, plot_multi_results, build_semantic_sam, SemanticSAMPredictor its giving the error "ModuleNotFoundError: No module named 'detectron2.modeling'"

FengLi-ust commented 1 month ago

Hi, why python -m pip install --quiet 'git+https://github.com/MaureenZOU/detectron2-xyz.git' not working? We modify the d2 for our model.