BiuBiuBiu
BiuBiuBiu
> why i can not train ? lt always kill ? > who can help me ? > >  which GPU do you use to train?
> why i can not train ? lt always kill ? > who can help me ? > >  I got a runtimeerror, Dataloader worker is killed by...
> > > when I change the invalid batch_size=128 or other number !=1, > RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 861 and...
> @LeonardNiu 请问一下,你的代码控制窗口会出现运行的结果吗? 没有,如果采用demo模式只会在摄像头画面中产生运行结果。
> @LeonardNiu If you close the camera window, the program will reopen it. Pressing 'q' or closing the terminal session can end the program. got it thank you
you can press space for many times to capture camera pic to recognize the emotion
demo.py, find demo function detected_face is the present face image, use cv2.imwrite() function can store the image.
I try it, just modify demo.py file, the demo function. if cv2.waitKey(1) & 0xFF == ord(' '): change into if cv2.waitKey(20): You can change the parameter of waitKey(), difference value...
same, in the demo.py, function demo: cv2.putText(frame, emotion, (10, index * 20 + 20), cv2.FONT_HERSHEY_PLAIN, 0.5, (0, 255, 0), 1) variable emotion refers to the readings such as anger, happy....
> > same, in the demo.py, function demo: > > cv2.putText(frame, emotion, (10, index * 20 + 20), cv2.FONT_HERSHEY_PLAIN, 0.5, (0, 255, 0), 1) > > variable emotion refers to...