Scaled-YOLOv4-TensorRT icon indicating copy to clipboard operation
Scaled-YOLOv4-TensorRT copied to clipboard

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

Open mlbo opened this issue 5 years ago • 1 comments

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

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

image

mlbo avatar Aug 06 '20 09:08 mlbo

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.

tjuskyzhang avatar Aug 07 '20 01:08 tjuskyzhang