Wahaha1314 / Fish-characteristic-measurement

Combined with mask R-CNN, each part of the fish is segmented and feature extraction is performed. (It contains a complete set of training samples)
9 stars 5 forks source link

Error: from samples.coco import coco #3

Open morganaribeiro opened 4 years ago

morganaribeiro commented 4 years ago

Could you give me a hint on how to fix the error in the code? @Wahaha1314

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-27-bd47cef29e3d> in <module>()
     28 # import coco config
     29 sys.path.append(os.path.join(ROOT_DIR, "/Complete_code/samples/coco"))  # To find local version
---> **30 from samples.coco import coco**
     31 # from pycocotools.coco import COCO
     32 

ModuleNotFoundError: No module named 'samples.coco'

---------------------------------------------------------------------------
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.
---------------------------------------------------------------------------