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

How to train on coco? #14

Open
lucasjinreal opened this issue Aug 9, 2019 · 8 comments
Open

How to train on coco? #14

lucasjinreal opened this issue Aug 9, 2019 · 8 comments

Comments

@lucasjinreal
Copy link

How to train on coco anyway?

@makefile
Copy link
Owner

makefile commented Aug 9, 2019

The input data format this repo support is as follows:

# image-id
image-name
number of boxes
label x1 y1 x2 y2 difficulty
...

So if you like to use the input layer in this repo, you need convert coco to this format, or you can custom your input layer.

@lucasjinreal
Copy link
Author

Oh, I see....

@lucasjinreal
Copy link
Author

@makefile BTW, how to design anchor in terms of coco dataset? For those voc it's like this:

 "feat_stride": "16",
 "anchors": "-84, -40, 99, 55,
             -176,  -88,  191,   103,
             -360,  -184,   375,   100,
             -56,   -56,    71,    72,
             -120,  -120,   135,   135,
             -248,  -248,   263,   263,
             -36,   -80,    51,    95,
             -80,   -168,   95,    183,
             -168,  -344,   183,   359",
 "test_score_thresh": "0.5",
 "n_classes": "21",

How to generats anchors in terms of coco dataset?

@makefile
Copy link
Owner

Try to use examples/FRCNN/generate_anchors.py to generate anchors info.

@lucasjinreal
Copy link
Author

@makefile Should I change anything in terms of different dataset? I can not found any where to set if I am not using voc.

@makefile
Copy link
Owner

You can adjust the settings in voc cfg file to adapt to different dataset.

@lucasjinreal
Copy link
Author

I mean, should those anchors also changed? But I can not see any params to set in generate_anchors.py.

@makefile
Copy link
Owner

You can set params in function generate_anchors(base_size=16, ratios=[0.5, 1, 2], scales=2**np.arange(3, 6)).

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

2 participants