Skip to content

Commit

Permalink
Make sure folder is always created when unzipping COCO (facebookresea…
Browse files Browse the repository at this point in the history
…rch#3143)

* Fix to make sure folder is always created

* New solution
  • Loading branch information
EricMichaelSmith authored Oct 1, 2020
1 parent 0522f47 commit 2c71d48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parlai/tasks/coco_caption/build_2017.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def build(opt):
if build_data.built(dpath):
# an older version exists, so remove these outdated files.
build_data.remove_dir(dpath)
build_data.make_dir(dpath)
build_data.make_dir(os.path.join(dpath, 'annotations'))
# Make the subfolder into which files will be unzipped

# download the data.
for downloadable_file in RESOURCES[3:]:
Expand Down

0 comments on commit 2c71d48

Please sign in to comment.