Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

naming directories with the prefix "coco_" causes assertion error #169

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cameron2018
Copy link

@cameron2018 cameron2018 commented Dec 18, 2018

i renamed my coco folders from their default names ("train2014") to the names specified in the documentation which results in this error:

INFO train.py: 171: Loading dataset: ('dense_coco_2014_train', 'dense_coco_2014_valminusminival')
Traceback (most recent call last):
File "tools/train_net.py", line 119, in
main()
File "tools/train_net.py", line 101, in main
checkpoints = detectron.utils.train.train_model()
File "/densepose/detectron/utils/train.py", line 50, in train_model
setup_model_for_training(model, weights_file, output_dir)
File "/densepose/detectron/utils/train.py", line 149, in setup_model_for_training
add_model_training_inputs(model)
File "/densepose/detectron/utils/train.py", line 173, in add_model_training_inputs
cfg.TRAIN.DATASETS, cfg.TRAIN.PROPOSAL_FILES
File "/densepose/detectron/datasets/roidb.py", line 53, in combined_roidb_for_training
roidbs = [get_roidb(*args) for args in zip(dataset_names, proposal_files)]
File "/densepose/detectron/datasets/roidb.py", line 34, in get_roidb
ds = JsonDataset(dataset_name)
File "/densepose/detectron/datasets/json_dataset.py", line 49, in init
'Im dir '{}' not found'.format(dataset_catalog.get_im_dir(name))
AssertionError: Im dir '/densepose/detectron/datasets/data/coco/train2014' not found

I'd like to see the documentation corrected because its already difficult enough to get this software working without silly gotcha's like this.

AssertionError: Im dir '/densepose/detectron/datasets/data/coco/train2014' not found
@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at [email protected]. Thanks!

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Dec 18, 2018
@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants