Description
After installing all the packages, when I ran train_model.py, I got this error:
2.0.0-dev20190519
loading annotations into memory...
Traceback (most recent call last):
File "train_model.py", line 28, in
scale=(800, 1216))
File "/home/maggie/Desktop/TensorFlow-2.x-Tutorials/lesson26-fasterRCNN/detection/datasets/coco.py", line 33, in init
self.coco = COCO("{}/annotations/instances_{}2017.json".format(dataset_dir, subset))
File "/home/maggie/.local/lib/python3.6/site-packages/pycocotools/coco.py", line 84, in init
dataset = json.load(open(annotation_file, 'r'))
FileNotFoundError: [Errno 2] No such file or directory: '/scratch/llong/datasets/coco2017//annotations/instances_train2017.json'
Then I found this blog has some info, so I tried to download annotation from coco website and changed the directory to the annotation as the second person in this blog suggested: cocodataset/cocoapi#191
but then I got another error:
Traceback (most recent call last):
File "train_model.py", line 8, in
from detection.datasets import coco, data_generator
File "/home/maggie/Desktop/TensorFlow-2.x-Tutorials/lesson26-fasterRCNN/detection/datasets/coco.py", line 38
self.cat_ids = self.coco.getCatIds()
^
IndentationError: unexpected indent