facebookresearch / maskrcnn-benchmark

Fast, modular reference implementation of Instance Segmentation and Object Detection algorithms in PyTorch.
MIT License
9.31k stars 2.49k forks source link

ModuleNotFoundError: No module named 'yacs' #1318

Open Leo0408 opened 3 years ago

Leo0408 commented 3 years ago

❓ Questions and Help

I have installed yacs successfully : "Installing collected packages: yacs Successfully installed yacs-0.1.8"

But there are always "modulenotfound" errors: "Traceback (most recent call last): File "webcam.py", line 5, in from maskrcnn_benchmark.config import cfg File "/home/qian/jiang/TinyBenchmark/tiny_benchmark/maskrcnn_benchmark/config/init.py", line 2, in from .defaults import _C as cfg File "/home/qian/jiang/TinyBenchmark/tiny_benchmark/maskrcnn_benchmark/config/defaults.py", line 4, in from yacs.config import CfgNode as CN ModuleNotFoundError: No module named 'yacs''

Even after i tried to uninstall and reinstall yacs, it still remained the same error. Would it be the edition of the yacs?

Souryadipstan commented 2 years ago

Try installing with conda. Worked for me.

conda install yacs