DeepCrack icon indicating copy to clipboard operation
DeepCrack copied to clipboard

Do I need add the resize code myself?I run your code and image,but the size of image didnt match to each other

Open Dhuzi96 opened this issue 3 years ago • 1 comments

您给的数据集出现的图片出现不同的size,请问需要自己加resize的代码吗?我加了跑出来结果和您的的差得挺多!

Dhuzi96 avatar Oct 08 '21 01:10 Dhuzi96

您给的数据集的图片出现了不同的大小,请问是否需要自己加调整大小的代码?我加了跑出来的结果和您的差得相当多!

兄弟,你整出来了吗?调整图片大小的代码和跑的结果

wudandi avatar Nov 13 '21 03:11 wudandi

我是改了一下大小,在读的时候改就行了

dys-c avatar Sep 05 '22 09:09 dys-c

能不能展示一下您的代码,怎么调整图片大小的?谢谢

ZsysyZ avatar Oct 04 '22 12:10 ZsysyZ

    img = cv2.imread(item[0])
    # img = cv2.resize(img, (112, 112))
    lab = cv2.imread(item[1])
    # lab = cv2.resize(lab, (112, 112))

dys-c avatar Oct 04 '22 12:10 dys-c

在那个地方添加,谢谢您的帮助

ZsysyZ avatar Oct 04 '22 12:10 ZsysyZ

注意改一下对应的test文件里的数值 save_pred = torch.zeros((112 * 2, 112)) save_pred[:112, :] = test_pred save_pred[112:, :] = lab.cpu().squeeze()

dys-c avatar Oct 04 '22 12:10 dys-c

不是512x512

ZsysyZ avatar Oct 04 '22 12:10 ZsysyZ

是在dataset文件里的 dataReadPip类 可以改512啊,但是512我跑的时候太慢了,负担挺大,我就改的小了

dys-c avatar Oct 04 '22 12:10 dys-c

[email protected]能否把您修改过的代码给我发一份,谢谢您

ZsysyZ avatar Oct 04 '22 12:10 ZsysyZ

我现在也还在改一些东西,恐怕会报错  

雨深 @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年10月4日(星期二) 晚上8:34 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [qinnzou/DeepCrack] Do I need add the resize code myself?I run your code and image,but the size of image didnt match to each other (#16)

@.***能否把您修改过的代码给我发一份,谢谢您

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

dys-c avatar Oct 04 '22 12:10 dys-c

感谢您的帮助!

ZsysyZ avatar Oct 04 '22 12:10 ZsysyZ