-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in fasterRCNN #13
Comments
it's just a indent error. I dnt know why but i suggest you solved it by yourself. |
Thanks, the problem was solved when I modified the data dir in train_model.py (last time I modified coco.py and it did not work). The training started until epoch 0 200 1.8066142 and reported: tensorflow/core/framework/tensor.cc:755] Type not set Aborted (core dumped) |
Hello, have you trained the FasterRCNN on COCO2017? If convenient, could you please share the final detection performance? Thanks. |
Please explain this error
|
batch_size设置太大,大于样本数了,所以出现以上错误。调低batch_size即可 |
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
The text was updated successfully, but these errors were encountered: