dmlc / gluon-cv

Gluon CV Toolkit
http://gluon-cv.mxnet.io
Apache License 2.0
5.82k stars 1.21k forks source link

Image Segmentation Network, strange looking images #172

Closed ThomasDelteil closed 6 years ago

ThomasDelteil commented 6 years ago

Using gluoncv 0.2 this is the output I get when running the image segmentation tutorial:

screen shot 2018-06-20 at 8 05 40 am

Is this the expected output? The mask looks strange and the denormalized image has artefact.

zhreshold commented 6 years ago

@zhanghang1989

ThomasDelteil commented 6 years ago

The reason is because the training images are augmented by default. Discussed with @hetong007 about that and in my opinion, there should be a flag to disable the default augmentation, or default augmentation should be passed by default to the transform argument. Right now you would need to do

trainset = gluoncv.data.VOCSegmentation(split='train')
trainset.mode = 'test'

in order to get training images without data augmentation.

ThomasDelteil commented 6 years ago

the artefact happen also on validation set, root cause was a bug in denormalize https://github.com/dmlc/gluon-cv/pull/181

zhanghang1989 commented 6 years ago

Thanks for reporting! There was a bug in denormalization.