datitran / face2face-demo

pix2pix demo that learns from facial landmarks and translates this into a face

Home Page:https://medium.com/@datitran/face2face-a-pix2pix-demo-that-mimics-the-facial-expression-of-the-german-chancellor-b6771d65bf66

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

X Error: BadDrawable (invalid Pixmap or Window parameter) 9 when running webcam

Willianflower opened this issue · comments

commented

when I run "python run_webcam.py --source 0 --show 0 --landmark-model shape_predictor_68_face_landmarks.dat --tf-model face2face-reduced-model/frozen_model.pb"
The result showed following:
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 62 (X_CopyArea)
Resource id: 0x220000e
And new video window is always black.
I use the virtual machine with Ubuntu 16.04.

Does anybody encounter such a problem?

commented

All right...
I find one method could solve this problem.
The "X Error:BadDrawable" such problem is caused by QT, you should make sure you install the QT.
when you finished the installation, add the environment variables.
Then don't foget export QT_X11_NO_MITSHM=1.