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

what do [resize] and [scale_x_y] params in yolov4-tiny yolo layer mean? #7683

Closed
ThomsonW opened this issue May 6, 2021 · 6 comments
Closed

Comments

@ThomsonW
Copy link

ThomsonW commented May 6, 2021

hi there, i have to develop a detection app on edge device, so i need to convert the darknet model to caffemodel. the model i used is yolov4-tiny.
the problem is that i use the decode function i used for yolov3 and the bbox i got is smaller than the result from darknet. i mean, the width and height is smaller, but the center point is fine.
so i check the cfg file, and i found the new params like [resize] and [scale_x_y], i guess the param is used to scale the bbox, but i dont know the formulation.
can anybody help me, thanks.

@lsd1994
Copy link

lsd1994 commented May 8, 2021

resize=1.5 - randomly resizes image in range: 1/1.5 - 1.5x
scale_x_y=1.05 - eliminate grid sensitivity(details #3293)

@akashAD98
Copy link

It has all parameters from Yolo cfg https://github.com/AlexeyAB/darknet/wiki/CFG-Parameters-in-the-%5Bnet%5D-section . Hope it will help you.

@Hiwyl
Copy link

Hiwyl commented May 13, 2021

@ThomsonW HI,yolov4-tiny 如何转成caffemodel格式得,我caffe源码不改动得情况下会有bug

@ThomsonW
Copy link
Author

@lsd1994 @akashAD98 Thanks a lot. I have fixed the post-process according to your advice, and the problem was solved.
@Hiwyl yolov4-tiny中的route层的参数(groups和group_id)在caffe中并不支持,你需要在转换代码中针对上述两个参数在cfg转prototxt中进行调整。一般来说需要用split层去替换。

@Hiwyl
Copy link

Hiwyl commented May 17, 2021

@ThomsonW ok,tks

@xixidiaosoulianwa
Copy link

@ThomsonW 请问您提到的 fixed the post-process 具体指的是什么?

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

5 participants