-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My own data test is very poor #5
Comments
Hi @pengweixiang , did you load the pretrained weights provided by this project? If yes, how did you crop the face and extract AU vectors? |
Except not used face_recognition to extract face bounding box. Can you trouble this part of the code for my reference, thank you very much! |
@pengweixiang , the main function goes as below. Note that you need to install face_recognition package first. import face_recognition
from PIL import Image
def crop_face(img_path, size=(128, 128)):
face_im = face_recognition.load_image_file(img_path)
bboxs = face_recognition.face_locations(face_im)
im = None
if len(bboxs) > 0:
im = Image.fromarray(face_im)
bbox = bboxs[0]
im = im.crop((bbox[3], bbox[0], bbox[1], bbox[2]))
im.thumbnail(size, Image.ANTIALIAS)
return im |
Thank you very much for your answer, I will try first. |
Maybe you can try to train the model with your own dataset? |
I suspect that it is an openface issue. I used the data you provided to re-generate the expression expression with the 2.0.5 version and compare the two values to find a certain deviation. After retesting, the effect was also worse. I want to ask if you are using that version of openface? |
The version of OpenFace I used for this project is 2.0.4. |
I can't search this version online. Can you provide related connections? I want to retrain the model here, using the data you provide to train a model that has the same effect as you provided? Is there a requirement for training parameters? |
The source code of OpenFace v2.0.4 can be downloaded from https://github.com/TadasBaltrusaitis/OpenFace/releases/tag/OpenFace_2.0.4, and refer to https://github.com/TadasBaltrusaitis/OpenFace/wiki/Unix-Installation for the installation guide. Good luck. |
The training results are not effective. . . It seems that luck is very important. |
|
Sorry but I don't have too much insight on your codes, settings or experiment environment, so I'm afraid I can't provide any effective suggestion for your case. |
I am testing in google colab and trying to get this setup so the environment will not matter, I am still having trouble with action units, if anyone is interested in setting this project up to train and test in google colab feel free to contact me and then we should all be getting the same results |
Hi @ak9250 , many thanks for your suggestion. However, I'm busy doing research on other topic these days, so I'm afraid I don't have time to update the project for the time being. |
Found the problem. Successfully achieved. thank you very much |
@pengweixiang |
Hi. I used celeba data, face_recognition package, openface to test the consistency of aus values. I found that the way of alignment really affects those values. |
Hi, @plutoyuxie, If you'd like to make sure the size of an image is resized to 128x128, kindly check im.resize. Note that before feeding to the training network, an image will always be resized to a specific shape, e.g. 128x128. So the size of images in the pre-processing may not really matter. |
Hi, @donydchen When I use size=(128,128) as parameters, 'im.thumbnail' makes an image size equal to (107, 108) (sth like this). So I'm confused. I fix my preprocessing problem, just delete the line 'im = im.crop((bbox[3], bbox[0], bbox[1], bbox[2]))'. Then I get the same cropped face image as the author gives. |
me too |
hi @pengweixiang,I just want to know the detail of how do you fix the problem? |
See if the default setting of your dataset is ‘none’. If yes, set resize |
每个系统里面生成的表情au参数都不一样,所以你需要重新训练调整,不能直接使用demo
发自我的iPhone
…------------------ Original ------------------
From: AndyWang <notifications@github.com>
Date: Sun,Apr 5,2020 10:13 PM
To: donydchen/ganimation_replicate <ganimation_replicate@noreply.github.com>
Cc: pengweixiang <519774491@qq.com>, Mention <mention@noreply.github.com>
Subject: Re: [donydchen/ganimation_replicate] My own data test is very poor (#5)
@pengweixiang @donydchen same problem, how is it solved? Thank you
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Can you provide OPENFACE code to extract action units |
这个au的值如何获取 可以提供openface的代码吗 感谢 |
I meet the same problem in testing. I success in celeba from gdrive, but fail in my own dataset. And I find a way to figure it out. The reason is that I use the error parameter extracted by Openface. Here is my way:
The work is interesting and the pre-trained weights are helpful. Thanks! |
I use my own data for testing. The results show the following strange situation, I would like to ask what is the situation?
The text was updated successfully, but these errors were encountered: