FastMaskRCNN icon indicating copy to clipboard operation
FastMaskRCNN copied to clipboard

HELP download_and_convert_data.py

Open lileiNPU opened this issue 7 years ago • 6 comments

There some errors when I run the download_and_convert_data.py. .................. File "libs/datasets/pycocotools/coco.py", line 79, in init dataset = json.load(open(annotation_file, 'r')) IOError: [Errno 2] No such file or directory: 'data/coco/annotations/instances_train2014.json'

I am a new man to python. I need help. Thanks very much. By the way, I also do not know how to organize the coco data.

lileiNPU avatar May 24 '17 13:05 lileiNPU

Extract

  1. captions_train-val2014.zip
  2. instances_train-val2014.zip
  3. person_keypoints_trainval2014.zip
  4. train2014.zip
  5. val2014.zip

Final folder structure should look like this: data/ ----coco --------annotations ------------captions_train2014.json ------------captions_val2014.json ------------instances_train2014.json ------------instances_val2014.json ------------person_keypoints_train2014.json ------------person_keypoints_val2014.json --------records --------train2014 --------val2014

Also in FastMaskRCNN: mkdir -p output/mask_rcnn

Modified script: maskRCNN.sh.zip

abhishekrana avatar May 24 '17 15:05 abhishekrana

Thanks very very much. Your are so kindly. *LEI

*李磊

发件人: Abhishek Rana 发送时间: 2017年5月24日 23:49 收件人: CharlesShang/FastMaskRCNN 抄送: DaXika; Author 主题: Re: [CharlesShang/FastMaskRCNN] HELP download_and_convert_data.py(#63)

Extract

  1. captions_train-val2014.zip
  2. instances_train-val2014.zip
  3. person_keypoints_trainval2014.zip
  4. train2014.zip
  5. val2014.zip Final folder structure should look like this: data/ ├── coco │   ├── annotations │ ├── captions_train2014.json │ ├── captions_val2014.json │ ├── instances_train2014.json │ ├── instances_val2014.json │ ├── person_keypoints_train2014.json │ └── person_keypoints_val2014.json │   ├── records │   ├── train2014 │   └── val2014 Also in FastMaskRCNN: mkdir -p output/mask_rcnn Modified script: maskRCNN.sh.zip — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

lileiNPU avatar May 25 '17 06:05 lileiNPU

Maybe this would be a better description to be put into the README ? @CharlesShang

kevinkit avatar May 26 '17 10:05 kevinkit

I met the same issue,how did you solved? Thanks very much!

Duankaiwen avatar Jun 17 '17 15:06 Duankaiwen

I think its ok.

发自网易邮箱大师

On 06/30/2017 19:09,Wenzhen[email protected] wrote:

When I run python download_and_convert_data.py to build tf-records, I got these result, it always says "None Annotations ..." is this normal?

Converting image 1/82783 shard 0 None Annotations data/coco/train2014/COCO_train2014_000000262184.jpg None Annotations data/coco/train2014/COCO_train2014_000000362257.jpg Converting image 51/82783 shard 0 Gray Image 86 Converting image 101/82783 shard 0 Converting image 151/82783 shard 0 None Annotations data/coco/train2014/COCO_train2014_000000000250.jpg Gray Image 131366 Converting image 201/82783 shard 0 Converting image 251/82783 shard 0 Converting image 301/82783 shard 0 None Annotations data/coco/train2014/COCO_train2014_000000262623.jpg None Annotations data/coco/train2014/COCO_train2014_000000000508.jpg

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

lileiNPU avatar Jun 30 '17 11:06 lileiNPU

i have the same question, can you give me the json files ?thx~ or ... maybe that`s something wrong with my operator?

ESCEBT avatar Dec 19 '19 15:12 ESCEBT