tensorlayer / TensorLayer

Deep Learning and Reinforcement Learning Library for Scientists and Engineers
http://tensorlayerx.com
Other
7.33k stars 1.61k forks source link

prepro apply_transform interpolation uses order=0 (nearest neighbour) resulting in images with artifacts #181

Closed geometrikal closed 7 years ago

geometrikal commented 7 years ago

Default for scipy.ndimage.interpolation is order=3 which results in smooth images. Using order=0 in tensorlayer apply_transform function results in images with artefacts.

Suggest to change to order=3

Order = 0

order0

Order = 3

order3

zsdonghao commented 7 years ago

great, please make another PR~