EGNet
EGNet copied to clipboard
Cannot save results on test images
Hi, I used a pre-trained model to test on my own images, and I add the following code:
elif sal_mode == 'f': # my specular highlight dataset
self.image_root = '/home/user/sh/fg_SH_EGNet/SH_dataset/Test'
self.image_source = '/home/user/sh/fg_SH_EGNet/SH_dataset/Test/test.lst'
self.test_fold = '/home/user/sh/fg_SH_EGNet/output'
But in output/EGNetResNet50, there is no output images. I check the code, and find the save config code is
cv2.imwrite(os.path.join(self.config.test_fold,name_t, name[:-4] + '.png'), multi_fuse)
Please help me. Very thank you.
Hi, You need to make a empty dir first.
From: GF [email protected] Date: 2020-02-04 13:38:58 To: JXingZhao/EGNet [email protected] Cc: Subscribed [email protected] Subject: [JXingZhao/EGNet] Cannot save results on test images (#23) Hi, I used a pre-trained model to test on my own images, and I add the following code: elif sal_mode == 'f': # my specular highlight dataset self.image_root = '/home/user/sh/fg_SH_EGNet/SH_dataset/Test' self.image_source = '/home/user/sh/fg_SH_EGNet/SH_dataset/Test/test.lst' self.test_fold = '/home/user/sh/fg_SH_EGNet/output' But in output/EGNetResNet50, there is no output images. I check the code, and find the save config code is cv2.imwrite(os.path.join(self.config.test_fold,name_t, name[:-4] + '.png'), multi_fuse) Please help me. Very thank you. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Hi, I used a pre-trained model to test on my own images, and I add the following code:
elif sal_mode == 'f': # my specular highlight dataset self.image_root = '/home/user/sh/fg_SH_EGNet/SH_dataset/Test' self.image_source = '/home/user/sh/fg_SH_EGNet/SH_dataset/Test/test.lst' self.test_fold = '/home/user/sh/fg_SH_EGNet/output'
But in output/EGNetResNet50, there is no output images. I check the code, and find the save config code is
cv2.imwrite(os.path.join(self.config.test_fold,name_t, name[:-4] + '.png'), multi_fuse)
Please help me. Very thank you.
您好,请问您是怎么解决的,我也遇到同样问题
Hi, I have the same problem, can you help me? Thanks.