Comments (4)
Hey,
so I looked into the code and I think you can calculate/get those numpy arrays on your own.
Here is what I did:
- Get the Texture space from the official FLAME website
- Extract the zip file and execute the following script:
import numpy as np
tex_space = np.load('./FLAME_texture.npz')
tex_mean = tex_space['mean']
tex_basis = tex_space['tex_dir']
np.save('./texture_mean_image_completed.npy', np.reshape(tex_mean, (1, -1)))
np.save('./texture_basis_images_completed.npy', np.reshape(tex_basis, (-1, 200))[:, :50])
This should generate the necessary files. Keep in mind that only the 50 first principal components of the texture space are used by default. If you want to use all 200 principle components of the texture space just remove the [:, :50]
above and exchange the value of tex_params
at the beginning of the __main__
function with the value of 200
.
from photometric_optimization.
same question,not found
from photometric_optimization.
Thanks for pointing it out. It's a version legacy issue, I've adapted the codes to FLAME_texture.npz as input, also fixed a texture space color range bug.
from photometric_optimization.
Could anyone tell me where to download the FLAME_texture.npz, is it one of the two :
from photometric_optimization.
Related Issues (20)
- questions regarding more details and evaluation of the texture PCA model
- Regarding a detail in the fitting code HOT 2
- About convergence rate
- About dynamic_lmk_faces_idx
- projection
- Head Pose Angles from Pose Parameters HOT 1
- Is there an open source implementation of Pytorch3dRasterizer?
- Could you share your pretraind inpainting model?
- More detailed head reconstruction
- Difference of flame and fwh?
- Releasing the code HOT 1
- How to customize landmark
- Multiple file missing and wanting for an library list HOT 3
- What are "Full Landmarks"? HOT 2
- What is the difference between 3d lmks and 2d lmks? HOT 1
- Perspective projection HOT 1
- Custom image HOT 16
- Basel Face Model (BFM) to FLAME HOT 3
- uv maps 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 photometric_optimization.