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 use COCO model ? #11

Open
cory8249 opened this issue Mar 28, 2017 · 3 comments
Open

How to use COCO model ? #11

cory8249 opened this issue Mar 28, 2017 · 3 comments

Comments

@cory8249
Copy link
Contributor

Hi @longcw ,

Thank you for sharing this awesome implementations. Actually I found this is the only one which runs as fast as YOLO's original darknet C code. I have some questions:

Is is possible to use 80-class COCO instead of 20-class PASCAL ?
How to convert pre-trained PASCAL weight to HDF5 file?
Or it is train by yourself (not converted from YOLO's original one) ?

Thank you.

@longcw
Copy link
Owner

longcw commented Mar 29, 2017

Of course, you can train YOLO on coco dataset. You first have to write a config file for coco just like yolo2-pytorch/cfgs/config_voc.py, and then implement a data loader for coco dataset.
I recommend you to use torch.utils.data to load dataset instead of the original imdb.py. It is much more elegant. Here you can find a implemented interface for coco.

The HDF5 file is converted from the weight file released by the author of YOLO. I use darkflow to load the original binary weight file.

This project still cannot train yolo2 well. I only got a ~50mAP on VOC2007. Maybe the low mAP is caused by improper training strategy or the insufficient data. You can read more here.

@hacunamatada
Copy link

I am a beginner about hdf5.
If possible, I want to know the procedure how to convert .weights files to .h5.

@Jiaming-Liu
Copy link

Jiaming-Liu commented Apr 22, 2017

Hi, @longcw, I have the same question. BTW, I found that the network structure yolo-voc in DarkFlow is slightly different from the one here. Am I missing something?

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

4 participants