rafaelpadilla / review_object_detection_metrics

Object Detection Metrics. 14 object detection metrics: mean Average Precision (mAP), Average Recall (AR), Spatio-Temporal Tube Average Precision (STT-AP). This project supports different bounding box formats as in COCO, PASCAL, Imagenet, etc.
Other
1.08k stars 215 forks source link

ModuleNotFoundError: No module named 'src' #124

Closed Sayali22 closed 1 year ago

Sayali22 commented 1 year ago
python run.py
Error: run.py", line 7, in <module>
    from src.ui.run_ui import Main_Dialog
ModuleNotFoundError: No module named 'src'

How to resolve this? I am using the Anaconda prompt on Windows.

rafaelpadilla commented 1 year ago

Did you run he command python setup.py install ?

Sayali22 commented 1 year ago

Yes. I have used below commands before running python run.py

conda env create -n metrics --file environment.yml
conda activate metrics
python setup.py install
hahv commented 1 year ago

I encountered such the same issue. The src installed package seems to be easy to conflict with the other packages/projects. My suggestion is to rename the main folder src to serve as a unique name for installing the package @rafaelpadilla.

Sayali22 commented 1 year ago

Thank you so much @hahv Renaming to src worked.