CSRNet-pytorch icon indicating copy to clipboard operation
CSRNet-pytorch copied to clipboard

Data augmentation

Open Ethanwl opened this issue 6 years ago • 3 comments

The data augmentation in code is not the same as the paper. There is no data augmentation in the code, but the code just use the same image four times.

Ethanwl avatar Jan 02 '19 07:01 Ethanwl

Ya you are right. In image.py, the image is taken as input and just resized and returned. The code for the cropping of 9 patches exists but the condition for cropping is never satisfied. So it returns the img resized using cv2.

praypratyay avatar Oct 23 '19 18:10 praypratyay

we can set train parameter as False in train.py for data augomentation

zhengmiao1 avatar Mar 10 '20 10:03 zhengmiao1

我也发现了这个问题,我想问的是在论文中提到的车辆数据集是不是不能按照文章中提到的方法进行剪裁,毕竟那个数据集在使用是就是被剪裁的,再次剪裁可能会剪裁不到东西。

CongWang-hnu avatar Apr 16 '21 02:04 CongWang-hnu