SegNet-Tutorial icon indicating copy to clipboard operation
SegNet-Tutorial copied to clipboard

test_segmentation_camvid.py

Open Timo-hab opened this issue 9 years ago • 7 comments

Hi,

it comes to that line: scipy.misc.toimage(rgb, cmin=0.0, cmax=255).save(IMAGE_FILE+'_segnet.png')

I get the error: IMAGE_FILE is not defined.

How can I get the names of the image files? Thank you in advance!

Timo-hab avatar Jun 23 '16 14:06 Timo-hab

anyone know this?

pammirato avatar Aug 12 '16 00:08 pammirato

Hi,

i didnt get this to work too. I just implemented my own nomenclature for the required Images, then you replace the "IMAGE_FILE" with your needed nomenclature string.

solved it for me.

Regards Stefan

Almo1982 avatar Aug 12 '16 07:08 Almo1982

Hi,

IMAGE_FILE is suppose to be replace by the path where you want to save the images. For example:

IMAGE_FILE = "path/to/predictions/'

Then just run the script and it will work.

Regards, Grarya

Grarya avatar May 12 '17 09:05 Grarya

Hi @Grarya I have replaced the IMAGE_FILE by their path, but how should I define the name of the predicted results

HaoWumarz avatar Mar 06 '18 03:03 HaoWumarz

Hi @HaoWumarz,

I have used the following command: scipy.misc.toimage(rgb, cmin=0.0, cmax=1).save(IMAGE_FILE+ str(i)+'_segnet.png') where: IMAGE_FILE is the path i: is from the for

The rest is up to you. Regards, Grarya

Grarya avatar Mar 06 '18 10:03 Grarya

Hello @Grarya

Thank you! It solved for me.

Regard, Hao

HaoWumarz avatar Mar 06 '18 16:03 HaoWumarz

Hi @HaoWumarz,

I have used the following command: scipy.misc.toimage(rgb, cmin=0.0, cmax=1).save(IMAGE_FILE+ str(i)+'_segnet.png') where: IMAGE_FILE is the path i: is from the for

The rest is up to you. Regards, Grarya

Thanks...It really helps

ArunJ1 avatar Feb 13 '19 18:02 ArunJ1