CLRNet icon indicating copy to clipboard operation
CLRNet copied to clipboard

自定义数据集的如何设置cut_height参数

Open cyn-liu opened this issue 2 years ago • 2 comments

你好,作者: 感谢你的开源,我最近想使用自己的数据集进行模型训练,我在创建了自己的clr_resnet18_mydataset.py配置文件,我对cut_height参数的设置有一些疑问,这个参数的意思是将图像crop为(0,cut_height, img_w, img_h)的图像,我看TuSimple、CULane、LLAMMAS数据集都设置了cut_height,请这个数据的设置依据是什么?如果我不知道如何设置,是否应该把cut_height设置为0,即不对图像进行crop。 另外,在clrnet/dataset下,计算ys时,也用到了cut_height, 以及设置了一个step,比如CULane数据集中的np.arange(270, 590, 8),其中step=8,请问这里step设置的依据是什么??? https://github.com/Turoad/CLRNet/blob/7269e9d1c1c650343b6c7febb8e764be538b1aed/clrnet/datasets/llamas.py#L146

https://github.com/Turoad/CLRNet/blob/7269e9d1c1c650343b6c7febb8e764be538b1aed/clrnet/datasets/culane.py#L97

https://github.com/Turoad/CLRNet/blob/7269e9d1c1c650343b6c7febb8e764be538b1aed/clrnet/datasets/tusimple.py#L64

cyn-liu avatar Oct 11 '23 10:10 cyn-liu

我也有此疑问,请问你解决了吗

happy-q123 avatar Jan 15 '25 09:01 happy-q123

你好,作者: 感谢你的开源,我最近想使用自己的数据集进行模型训练,我在创建了自己的clr_resnet18_mydataset.py配置文件,我对cut_height参数的设置有一些疑问,这个参数的意思是将图像crop为(0,cut_height, img_w, img_h)的图像,我看TuSimple、CULane、LLAMMAS数据集都设置了cut_height,请这个数据的设置依据是什么?如果我不知道如何设置,是否应该把cut_height设置为0,即不对图像进行crop。 另外,在clrnet/dataset下,计算ys时,也用到了cut_height, 以及设置了一个step,比如CULane数据集中的np.arange(270, 590, 8),其中step=8,请问这里step设置的依据是什么???

https://github.com/Turoad/CLRNet/blob/7269e9d1c1c650343b6c7febb8e764be538b1aed/clrnet/datasets/llamas.py#L146

https://github.com/Turoad/CLRNet/blob/7269e9d1c1c650343b6c7febb8e764be538b1aed/clrnet/datasets/culane.py#L97

https://github.com/Turoad/CLRNet/blob/7269e9d1c1c650343b6c7febb8e764be538b1aed/clrnet/datasets/tusimple.py#L64 我也有此疑问,请问你解决了吗

happy-q123 avatar Jan 15 '25 09:01 happy-q123