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

my imagine size is 1024*1024.How to modify the size of an input picture。 #2

Open
mlbo opened this issue Aug 6, 2020 · 1 comment

Comments

@mlbo
Copy link

mlbo commented Aug 6, 2020

when I modify code in yololayer.h i met such error

static constexpr int INPUT_H = 1024;
static constexpr int INPUT_W = 1024;

image

@tjuskyzhang
Copy link
Owner

when I modify code in yololayer.h i met such error

static constexpr int INPUT_H = 1024;
static constexpr int INPUT_W = 1024;

image

The "INPUT_H" and "INPUT_W" are the input size of the network, according to your's yolov4-tiny.cfg. The input image can be any size ,and will be resized into the input size of the network at the preprocessing stage. By the way, I also updated my code (the Dims of the "route_lhalf" layers in "yolov4-tiny.cpp") in order to improve the adaptability of the input size of the network.

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