Yutong

Results 21 comments of Yutong

太感谢了,我看了很久,就是没明白cfg.crop_size这个参数是什么意思,这下懂了 ------------------ 原始邮件 ------------------ 发件人: ***@***.***>; 发送时间: 2022年9月1日(星期四) 晚上8:00 收件人: ***@***.***>; 抄送: ***@***.***>; ***@***.***>; 主题: Re: [cfzd/Ultra-Fast-Lane-Detection-v2] 单张图片推理车道线不匹配问题 (Issue #28) @Gannis246 我在另外一个issue已经回复了,你可以参考那个回复。 — Reply to this email directly, view it on GitHub,...

@Aruen24 正常了 图片预处理部分改成这样 ``` img_transforms = transforms.Compose([ transforms.ToPILImage(), transforms.Resize((int(cfg.train_height/cfg.crop_ratio), cfg.train_width)), transforms.ToTensor(), transforms.Normalize((0.485, 0.456, 0.406), (0.229, 0.224, 0.225)), ]) im0 = img.copy() img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) img_h, img_w = img.shape[0], img.shape[1]...

@Aruen24 效果还是可以的 ![11](https://user-images.githubusercontent.com/69740611/188047319-b7e42f66-b8fc-40bb-82f3-4203464622cd.jpg)

@Aruen24 我就是用的预训练模型。感觉这个模型泛化性不是很好,近处车道遮挡,压线行驶,大弯道检测不出来,挡风玻璃反光也会偏移

@Aruen24 the code has no problem. if this model is trained by yourself, maybe you have changed the `cfg.train_height` or `cfg.train_height`.

@Aruen24 I have run every pretrained model and I think culane_res18.pth and culane_res34.pth are best

@Aruen24 ![11](https://user-images.githubusercontent.com/69740611/188101582-42e54c46-3c20-4280-82db-f56dc532103a.jpg) like this

@Aruen24 代码没问题的,其他文件我都没改你就用culane_res18试一下,不行的话换张图试试

------------------ 原始邮件 ------------------ 发件人: "cfzd/Ultra-Fast-Lane-Detection-v2" ***@***.***>; 发送时间: 2022年9月2日(星期五) 上午10:29 ***@***.***>; ***@***.******@***.***>; 主题: Re: [cfzd/Ultra-Fast-Lane-Detection-v2] 单张图片推理车道线不匹配问题 (Issue #28) 测试一下这张图片看看是否正常 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this...

@Aruen24 @guodaoyi [https://github.com/cfzd/Ultra-Fast-Lane-Detection-v2/issues/18#issuecomment-1234179888](url) 如果是飘在天上的话,可能是裁剪的天空范围不对。试试改一下cfg.train_height,cfg.crop_ratio,self.crop_size这几个参数