Skip to content

Commit 15b3f42

Browse files
committed
fix the error in data_transform for windows build.
1 parent c27db90 commit 15b3f42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/caffe/data_transformer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ void DataTransformer<Dtype>::Transform_Yolo(const AnnotatedDatum& anno_datum,
362362
float dx = rand_uniform(0, resize_width - nw);
363363
float dy = rand_uniform(0, resize_height - nh);
364364

365-
float resized_image[resize_width * resize_height * 3];
365+
float* resized_image = new float[resize_width * resize_height * 3];
366366
for(int i = 0; i < (resize_width * resize_height * 3); i++)
367367
resized_image[i] = 0.5;
368368
place_image(cv_img, nw, nh, dx, dy, resized_image, resize_width, resize_height, scale);

0 commit comments

Comments
 (0)