fyu / lsun

LSUN Dataset Documentation and Demo Code
531 stars 175 forks source link

Pictures exported not in expected manner #18

Closed louiszen closed 6 years ago

louiszen commented 6 years ago

The pictures export from the lmdb seems to have some decoding problem. Does anyone have any idea to solve it? image

Platform: Window 10, Anaconda 3, python 2.7

louiszen commented 6 years ago

cv2.imwrite(image_out_path, img)

with open(image_out_path, 'w') as fp:

        #    fp.write(val)

I choose to use cv2.imwrite and it solves the problem.