predictive-filter-flow icon indicating copy to clipboard operation
predictive-filter-flow copied to clipboard

some image is loaded upside down

Open zlw21gxy opened this issue 5 years ago • 2 comments

image

zlw21gxy avatar Apr 29 '19 02:04 zlw21gxy

I wonder why we need do it?Flip image is some kind like data argument? if self.set_name=='train' and np.random.random(1)>0.5: image1 = image1.transpose(PIL.Image.FLIP_TOP_BOTTOM) image2 = image2.transpose(PIL.Image.FLIP_TOP_BOTTOM) if self.set_name=='train' and np.random.random(1)>0.5: image1 = image1.transpose(PIL.Image.FLIP_LEFT_RIGHT) image2 = image2.transpose(PIL.Image.FLIP_LEFT_RIGHT)

zlw21gxy avatar Apr 29 '19 02:04 zlw21gxy

Yes. It is for augmenting training data. As mgPFF is a low-level vision method, meaning that it does not need to understand high-level semantics, such flip and flop augmentation can be applied here. But it is optional when you have enough training data.

On Sun, Apr 28, 2019 at 7:53 PM zlw21gxy [email protected] wrote:

I wonder why we need do it?Flip image is some kind like data argument? if self.set_name=='train' and np.random.random(1)>0.5: image1 = image1.transpose(PIL.Image.FLIP_TOP_BOTTOM) image2 = image2.transpose(PIL.Image.FLIP_TOP_BOTTOM) if self.set_name=='train' and np.random.random(1)>0.5: image1 = image1.transpose(PIL.Image.FLIP_LEFT_RIGHT) image2 = image2.transpose(PIL.Image.FLIP_LEFT_RIGHT)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aimerykong/predictive-filter-flow/issues/4#issuecomment-487439941, or mute the thread https://github.com/notifications/unsubscribe-auth/ABRJSJHCDKVKJVASUUXUDWDPSZPKRANCNFSM4HI76GKA .

aimerykong avatar Apr 29 '19 04:04 aimerykong