apple / turicreate

Turi Create simplifies the development of custom machine learning models.
BSD 3-Clause "New" or "Revised" License
11.2k stars 1.14k forks source link

Sometimes stylized Image is upside down when saved (maybe bug) #654

Open enzyme69 opened 6 years ago

enzyme69 commented 6 years ago

I noticed a couple of time that Stylized image is upside down when I am saving image out:

from PIL import image
Image.fromarray(stylized_image.pixel_data).save(output_name)

Or when I explore: stylized_images.explore()

Not sure where it got flipped. Does not always happen. Possibly when image scaled down.

srikris commented 6 years ago

@znation Might be good to add a .save to the tc.Image type. This would avoid these issues.

znation commented 6 years ago

@srikris Not sure how .save would avoid this issue (assuming it repros in .explore as well). Can you elaborate? My suspicion is that there is rotation/mirror information in the metadata that isn't always being read or used.

TobyRoseman commented 4 years ago

Likely related to #1147