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

Where to put the training or testing dataset? #22

Open
JiajiaLi04 opened this issue Sep 7, 2021 · 5 comments
Open

Where to put the training or testing dataset? #22

JiajiaLi04 opened this issue Sep 7, 2021 · 5 comments

Comments

@JiajiaLi04
Copy link

Dear Author,

I wonder where to put the training and testing dataset? Are there any rules to name them. It is weired that you did not have the parameters in your parameter lines. Do I need to change the dataset name in the code? Hoping for your reply. Thanks!

@wmrenr
Copy link

wmrenr commented Mar 31, 2022

Did you solve this problem please?

@wondervictor
Copy link
Member

Hi @JiajiaLi04 @wangxueping78, I'm much sorry for the late reply!
Preparing the dataset is simple, and you can refer to Dataset for Detectron2 for more details.
Exactly, if you MS-COCO dataset, you just download the dataset from the official site and unzip the files.
Then you can enter into the directory of this repo by:

cd BMaskR-CNN
cd projects/BMaskR-CNN

setup a datasets folder, or use a soft link if you store the data in other place,

mkdir datasets
cd datasets
mkdir coco

then put the COCO dataset into coco directory, and then the directory tree of projects/BMaskR-CNN is like:

datasets
| -- coco
      | -- annotations
      | -- val2017
      | -- train2017

If you have any question, I'll reply as soon as possible.

@wmrenr
Copy link

wmrenr commented Mar 31, 2022

Hi @JiajiaLi04 @wangxueping78, I'm much sorry for the late reply! Preparing the dataset is simple, and you can refer to Dataset for Detectron2 for more details. Exactly, if you MS-COCO dataset, you just download the dataset from the official site and unzip the files. Then you can enter into the directory of this repo by:

cd BMaskR-CNN
cd projects/BMaskR-CNN

setup a datasets folder, or use a soft link if you store the data in other place,

mkdir datasets
cd datasets
mkdir coco

then put the COCO dataset into coco directory, and then the directory tree of projects/BMaskR-CNN is like:

datasets
| -- coco
      | -- annotations
      | -- val2017
      | -- train2017

If you have any question, I'll reply as soon as possible.
Oh thank you so much!
Excuse me,should the instances_train2017.json and instances_val2017.json be placed in the annotations folder?

@wondervictor
Copy link
Member

@wangxueping78 yep, the instances_train2017.json and instances_val2017.json should be placed into the annotations directory, that is,

datasets
| -- coco
      | -- annotations
            | -- instances_train2017.json
            | -- instances_val2017.json
      | -- val2017
      | -- train2017

@wmrenr
Copy link

wmrenr commented Mar 31, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants