Comments (10)
Hey, thanks for your interest. Yes, it is possible if you only transfer the predicted expression and jaw pose parameters (i.e. pose[:,3:6]). You can find an example of that in the original DECA (https://github.com/YadiraF/DECA/blob/master/demos/demo_transfer.py).
from spectre.
@filby89 , What is value range of expression
data predicted by Spectre
model?
Since, It's based on FLAME face model, Their value range is (-3,3) i think. How can i map these value to lower range having same effect.
from spectre.
Hey @ujjawalcse. Yes it follows the FLAME model. I have tested the ranges of DECA, EMOCA, and SPECTRE and found out that generally the values of expression in EMOCA and SPECTRE are much large than DECA. On a small subset of videos I have found that the maximum value of DECA for the first component is around 3.5, EMOCA 6.5 and SPECTRE 9. However, in some other components SPECTRE can be as large as 35 in some cases (although I have not seen how this component affects the output specifically).
Can you list more details regarding what you wanna do ?
from spectre.
Sure @filby89 ,
Actually, I wanna assign these expressions values to a FLAME model in 3D software (like Blender) so that the mesh can be deformed and exported into AR/VR friendly format. But when I checked with the Spectre expression values, sometimes it's deforming the mesh too much such that the faces are looking awkward.
from spectre.
@ujjawalcse Can you post an example of parameters ?
from spectre.
Sure,
Please find the below .zip file containing one .npy file.
https://drive.google.com/file/d/1zrlIj0pNktoYkwFZ2MH3f9HOdyndcmPR/view?usp=sharing
It contains all the parameters saved after adding Spectre
predicted parameter with the DECA
initials parameters.
Here you can see,how i saved them.
Line no. 192, Just keep appending the final parameters to one empty list codedicts
defined outside the loop.
Line 197, Saved the updated list to a .npy file.
While checking this .npy file, First 2 frames and last 2 frames had unusual values as they are corresponding to the padded frames i think, so I removed them.
from spectre.
Hey,
you are correct, first 2 and last frames correspond to padded frames and contain garbage. I reconstructed the .npy file and got the following result:
v_grid.mp4
I guess that the problems you are talking about are frames like the next one ?
We have found out that this happens in a minority of videos and it is due to DECA, not estimating correctly the camera parameters. Because SPECTRE only predicts the expression parameters and jaw, it relies on DECA for the camera matrix and if DECA fails, artifacts like this can appear.
I am not sure if that will fix the problem, but you could tweak a little the scale parameter in the dataset class and zoom out a bit. We have it fixed at 1.6 for testing, but during training we use a range from [1.4,1.8].
from spectre.
Thanks @filby89 for your clear expression.
The scale
parameter in DECA is 1.25
.
Should I test with 1.6 or any value between 1.4 and 1.8 ?
from spectre.
@ujjawalcse I would suggest running the demo in this repository with multiple values (either 1.25 or between 1.4 and 1.8) and see which one fits your case :).
from spectre.
Right! Thanks, @filby89.
from spectre.
Related Issues (18)
- Cannot clone the submodule external/Visual_Speech_Recognition_for_Multiple_Languages HOT 2
- Can not find the run_av_hubert.sh file HOT 1
- Is it possible to use this work for single image reconstruction? HOT 1
- How do I get the generated mesh HOT 1
- Magnitude of expression loss while training HOT 1
- script demo.py fail to start HOT 1
- About landmarks HOT 1
- Unable to perceive improvement. HOT 3
- Cannot find tracker folder in the Visual_Speech_Recognition_for_Multiple_Languages
- dataset link invalid HOT 2
- Reconstructed mesh is not stable HOT 4
- About the Pre-trained model HOT 1
- couldn't download the spectre_model.tar HOT 2
- Question about saving the mesh HOT 3
- How to change training datasets? HOT 3
- Great works! Do you try with temporal images rather than audio? HOT 3
- Problem with face_detection HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spectre.