EGNet icon indicating copy to clipboard operation
EGNet copied to clipboard

Cannot save results on test images

Open fu123456 opened this issue 4 years ago • 3 comments

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.

fu123456 avatar Feb 04 '20 05:02 fu123456

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.

JXingZhao avatar Feb 11 '20 14:02 JXingZhao

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.

您好,请问您是怎么解决的,我也遇到同样问题

zhouzhouzheng avatar Jan 08 '21 04:01 zhouzhouzheng

Hi, I have the same problem, can you help me? Thanks.

cs19469 avatar Dec 29 '21 07:12 cs19469