Closed ZzzjzzZ closed 6 years ago
change line 460 and 474 into: fn = os.path.join(output_dir, filenames[ind].split('/')[-1][:-4] + '.png')
The current code is supposed to store the generated images in a local directory. The folder name is '{}_{:03d}_{}'.format(args.arch, start_epoch, phase)
if not suffix is specified. What is the problem with that?
I think the problem he met is similar as what I met, that filenames[ind] starts with home, like: home/../cityscape/.., if the data is saved in this way, the generated path with command fn = os.path.join(output_dir, filenames[ind][:-4] + '.png') will keeps starting with home/../.., which means the output fn will be the same as os.path.join(filenames[ind][:-4] + '.png'), so my advise to fix it is to split the filenames and find what you need to preserve
hello, @mrxue1993 ,when I do evaluation on the validation dataset, it always out of memory, Can your tell me why. Thanks!
My gnu memory is 12G.
when I run as follows with the released pretrained model: python segment.py test -d ./dataset/cityscapes/ -c 19 --arch drn_d_105 --pretrained output/drn-d-105_ms_cityscapes.pth --phase val --batch-size 1 --ms
it gives the a lower mIou(53%) than the performance in paper ,Can your tell me why. Thanks!
@fyu thx!
@mrxue1993 thanks
Hi! Following your introduction, I achieved the testing. But I found that it saves the predicted images into the original images folder --"test", and overwrites the original test images. It does not create the folder as the "save_colorful_images" & "save_output_images" function described. Can your tell me why. Thanks!