hysts / pytorch_mpiigaze

An unofficial PyTorch implementation of MPIIGaze and MPIIFaceGaze
MIT License
346 stars 85 forks source link

A clarification #47

Closed dreamer-1996 closed 3 years ago

dreamer-1996 commented 3 years ago

Hello, What is this piece of code doing in the preprocess_mpiigaze.py ? Can you tell

image = right_images[day][index][:, ::-1]

hysts commented 3 years ago

Hi, @dreamer-1996

It's flipping images horizontally so that we can treat right eye images as left eye images.

dreamer-1996 commented 3 years ago

Thanks :)