PatBall1 / detectree2

Python package for automatic tree crown delineation based on the Detectron2 implementation of Mask R-CNN
https://patball1.github.io/detectree2/
MIT License
148 stars 35 forks source link

cannot import model_zoo #56

Closed 0scarJ1ang closed 7 months ago

0scarJ1ang commented 1 year ago

ModuleNotFoundError Traceback (most recent call last) in 10 from PIL import Image 11 from pathlib import Path ---> 12 from detectron2 import model_zoo 13 from detectron2.engine import DefaultPredictor, DefaultTrainer 14 from detectron2.config import get_cfg

9 frames /usr/local/lib/python3.7/dist-packages/detectron2/utils/tracing.py in 2 from typing import Union 3 import torch ----> 4 from torch.fx._symbolic_trace import _orig_module_call 5 from torch.fx._symbolic_trace import is_fx_tracing as is_fx_tracing_current 6

ModuleNotFoundError: No module named 'torch.fx._symbolic_trace'


NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the "Open Examples" button below.