hyf015 / egocentric-gaze-prediction

Code for the paper "Predicting Gaze in Egocentric Video by Learning Task-dependent Attention Transition"
62 stars 18 forks source link

Something wrong with browsing place in data/STdatas.py #9

Closed kazucmpt closed 5 years ago

kazucmpt commented 5 years ago

In data/STdatas.py in line, you wrote:

if name == 'main': imgPath = '../gtea_imgflow' gtPath = '../gtea_gts' fixsacPath = '../fixsac'

But I guess it should be

if name == 'main': imgPath = '../../gtea_imgflow' gtPath = '../../gtea_gts' fixsacPath = '../fixsac'

Am I wrong?

hyf015 commented 5 years ago

It depends on from which directory you run the code.

kazucmpt commented 5 years ago

Of course, you right. Although, you suppose gtea_images and gtea_imgflow folders are in ../ in gaze_full.py, you suppose gtea_images and gtea_imgflow are in other location in data/STdatas.py.

Being without a consistency is not good.

hyf015 commented 5 years ago

Yes, that's true. My assumption is that people run their code in the main directory. I'd appreciate it if there a suggestion on how to modify it.

zhangtongtong528 commented 5 years ago

Hi! If I just want to get the saliency map of my video dataset, do I run STdatas.py for data processing and then SP.py?

hyf015 commented 5 years ago

Hi! If I just want to get the saliency map of my video dataset, do I run STdatas.py for data processing and then SP.py?

Sorry I missed this. I think you need to modify STdatas and then run SP.