hysts / pytorch_mpiigaze_demo

Gaze estimation using MPIIGaze and MPIIFaceGaze
MIT License
295 stars 66 forks source link

question #2

Closed nhathoang0110 closed 3 years ago

nhathoang0110 commented 3 years ago

How can I modify the code in pygaze folder?

I have edited it but cannot apply when i run

hysts commented 3 years ago

Hi, @nhathoang0110

I'm not sure I understand your question. What modifications have you made? I think the error message might be helpful.

nhathoang0110 commented 3 years ago

Hello. It have not error. I have modified to print out some information but it doesn't do that. I guess it's because the program is installed and running using ptgaze so I fix the code directly and it doesn't get.

nhathoang0110 commented 3 years ago

more specifically, what do I have to do to save all the image frames when I test the video

hysts commented 3 years ago

@nhathoang0110

Ah, ok, I think I understand now. So, you've installed ptgaze by running pip install ptgaze, but you want to modify its behavior, so you cloned the repository, but it doesn't work after you made the change, right?

In that case, I think you can run the modified version in the pytorch_mpiiigaze_demo directory as follows,

python -m ptgaze --config /path/to/your/config.yaml

Or, you can uninstall the ptgaze first and then install your modified version by running the following command in the modified repo,

pip uninstall ptgaze
python setup.py install
nhathoang0110 commented 3 years ago

oh it works. Thanks very much. My english is not good. Sorry and thanks you very much. It's great

hysts commented 3 years ago

No problem. Glad to hear that. :)