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

Detection on Custom Dataset #11

Open
pranjulparnami opened this issue Nov 18, 2020 · 3 comments
Open

Detection on Custom Dataset #11

pranjulparnami opened this issue Nov 18, 2020 · 3 comments

Comments

@pranjulparnami
Copy link

Hi,

Firstly, thanks for this great piece of work!

I would like to train YOLOv4-Tiny on my custom dataset and the use-case is to run the model on Jetson TX2. So, could you please tell, how can I train the model so that it remains compatible with this code (as you've mentioned in another repo that this doesn't work with AlexeyAB's model).

I have checked this WongKinYiu/PyTorch_YOLOv4 repo. But there isn't any support to train Tiny-YOLOv4.

I can train my model using Darknet/AlexeyAB's repo, so if you can share the necessary changes required to make it compatible, that will be great.

Either of the above will work.

Regards!

@tjuskyzhang
Copy link
Owner

Hi,

Firstly, thanks for this great piece of work!

I would like to train YOLOv4-Tiny on my custom dataset and the use-case is to run the model on Jetson TX2. So, could you please tell, how can I train the model so that it remains compatible with this code (as you've mentioned in another repo that this doesn't work with AlexeyAB's model).

I have checked this WongKinYiu/PyTorch_YOLOv4 repo. But there isn't any support to train Tiny-YOLOv4.

I can train my model using Darknet/AlexeyAB's repo, so if you can share the necessary changes required to make it compatible, that will be great.

Either of the above will work.

Regards!

This may help you: WongKinYiu/PyTorch_YOLOv4#3 (comment)

@pranjulparnami
Copy link
Author

pranjulparnami commented Nov 19, 2020

The training part is working fine. But detection results are different from the one I get using WongKinYiu/PyTorch_YOLOv4's detect.py for same weights with same confidence and nms threshold.

@tjuskyzhang
Copy link
Owner

Try to set the MAX_OUTPUT_BBOX_COUNT to a large value like 99999999.
And nms method maybe different from the pytorch.

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