Skip to content
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

About -cocoDir and -cocoInfo #4

Open
okisy opened this issue Jun 24, 2018 · 3 comments
Open

About -cocoDir and -cocoInfo #4

okisy opened this issue Jun 24, 2018 · 3 comments
Assignees
Labels
in progress Assignees are working on the issue missing details Some details are missing

Comments

@okisy
Copy link

okisy commented Jun 24, 2018

When I tried to run evaluate.py with “-evalMode dialog” like this
python evaluate.py -useGPU \ -startFrom checkpoints/abot_rl_ep20.vd \ -qstartFrom checkpoints/qbot_rl_ep20.vd \ -evalMode dialog \ -beamSize 5
, I had an error as follows

[Error] Need coco directory and info as input to -cocoDir and -cocoInfo arguments for locating coco image files.
Exiting dialogDump without saving files.

What should I do with this? Is it appropriate for me to make a path to the directory which has MSCOCO dataset?

In addition what are these two(-cocoDir, -cocoInfo) used for?

@nirbhayjm nirbhayjm self-assigned this Jun 24, 2018
@nirbhayjm
Copy link
Member

Will add information about how to use the coco information in visualization soon.

Briefly, the -cocoDir argument is supposed to be the directory containing all coco images and coco.json should have a dictionary of paths within -cocoDir, which should look something like this:

{"images":
   [
      {
         "id": 152328,
         "split": "val",
         "file_path": "train2014/COCO_train2014_000000152328.jpg"
      },
      {
         "id": 82551,
         "split": "val",
         "file_path": "val2014/COCO_val2014_000000082551.jpg"
      },
      ...
   ]
}

I will look into adding the json file itself to the repository if the mapping to coco images is not obvious in the current data.

@nirbhayjm nirbhayjm added missing details Some details are missing in progress Assignees are working on the issue labels Jun 24, 2018
@niwtr
Copy link

niwtr commented Mar 5, 2020

Any update on this one please?

@JackFurby
Copy link

I think I have made a script to generate the coco.json file. I have made this into a gist for easy access https://gist.github.com/JackFurby/249c5f584c2df4dda80361af5b05a368. To the best of my knowledge this is correct and the generated JSON file seems to be working when training the models.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in progress Assignees are working on the issue missing details Some details are missing
Projects
None yet
Development

No branches or pull requests

4 participants