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

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

Open
cyn-liu opened this issue Oct 11, 2023 · 0 comments
Open

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

cyn-liu opened this issue Oct 11, 2023 · 0 comments

Comments

@cyn-liu
Copy link

cyn-liu commented Oct 11, 2023

你好,作者:
感谢你的开源,我最近想使用自己的数据集进行模型训练,我在创建了自己的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设置的依据是什么???

ys = np.arange(300, 717, 1) / (self.cfg.ori_img_h - 1)

ys = np.arange(270, 590, 8) / self.cfg.ori_img_h

ys = np.array(self.h_samples) / self.cfg.ori_img_h

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

1 participant