Comments (13)
Hi, the rotation stores the three Euler angles (in rad) w.r.t to three rotation axis (x,y,z axis). The translation stores the xyz shift (in dm) w.r.t the origin in the world coordinate space. For more details, you can check https://github.com/sicxu/Deep3DFaceRecon_pytorch/blob/master/models/bfm.py
from deep3dfacerecon_pytorch.
Hi, to generate obj file with frontal face, you need to change the predicted pose parameters to zeros.
You can modify the angles and translation here:
Deep3DFaceRecon_pytorch/models/bfm.py
Line 263 in 73d4911
from deep3dfacerecon_pytorch.
Hi, to generate obj file with frontal face, you need to change the predicted pose parameters to zeros.
You can modify the angles and translation here:Deep3DFaceRecon_pytorch/models/bfm.py
Line 263 in 73d4911
Thanks for you reply! Do I just need to use "angles = coeffs[0, 0: 0]" ?
from deep3dfacerecon_pytorch.
Also,assuming the face is front in the 3d scene,how to output the camera data that is used for the overlay comparison (i.e the camera position rotation and focal length) ? (P.S. sorry for the stupid questions,I am not really familar with all this)
from deep3dfacerecon_pytorch.
You just simply set angles = coeffs[:, 224: 227] *0 would be fine.
In our work we set the camera position at [0,0,10] with a fixed focal length of 1015. And the camera is looking at [0,0,0] which is the origin of the world coordinate. The predicted angles and translation in "coeff" are rotation and shift for the 3d face w.r.t the world coordinate. With the above information, you should be able to render a face image aligned with the input face.
from deep3dfacerecon_pytorch.
Thank you ! btw by saying the camera information I mean the "transformed" information (the camera look at the face so it will rotate as the face rotate to front view)..Can I output that information to cmd window ? (I know it can be computed from the face rotation and translation but direct output would be convenient)
from deep3dfacerecon_pytorch.
In our case we do not record the camera extrinsic parameters but only face rotations and translations. So I think you may need to compute it by yourself.
from deep3dfacerecon_pytorch.
That's alright,I can do this by camera tracking in blender.Then can I output the translation and rotation of face to cmd window (in a manner that (x,y,z) for translation and another(x,y,z) for rotation)?
from deep3dfacerecon_pytorch.
The default output already contains these information. If you check the test section, the output .mat file contains the "coeffs". If you just want to print them in the cmd window, you can modify the function here:
Deep3DFaceRecon_pytorch/test.py
Line 68 in 73d4911
I'm not sure if this is what you expect.
from deep3dfacerecon_pytorch.
What’s the exact meaning of array in rotation and translation ? Do they mean sin value of angle and meter in distance respectively ?
from deep3dfacerecon_pytorch.
The default output already contains these information. If you check the test section, the output .mat file contains the "coeffs". If you just want to print them in the cmd window, you can modify the function here:
Deep3DFaceRecon_pytorch/test.py
Line 68 in 73d4911
I'm not sure if this is what you expect.
Could you tell me the exact meaning of the array stored in rotation and translation?
from deep3dfacerecon_pytorch.
Hi, the rotation stores the three Euler angles (in rad) w.r.t to three rotation axis (x,y,z axis). The translation stores the xyz shift (in dm) w.r.t the origin in the world coordinate space. For more details, you can check https://github.com/sicxu/Deep3DFaceRecon_pytorch/blob/master/models/bfm.py
I did an experiment about translation and rotation.I have 3 meshes,one disabled rotation(1),one disable translation(2) and one disabled both(3).I try to match them with the given rotation and translation parameter.
(left is rotation right is translation)
(mesh 1 and mesh 3 coincide with output translation)
However mesh 2 and mesh 3 won't even be close with the output rotation(transfer from rad to degree which is *180/pi).I try to align them manually and get the rotation (-5.2,7.63,42.8)(in degree) (not perfect but very close)...Do you know what's going on here ?
from deep3dfacerecon_pytorch.
hi,how can I export the original bounding box without resizing to 224*224 ? I want to use that for texture projection.
from deep3dfacerecon_pytorch.
Related Issues (20)
- RuntimeError: Cuda error: 304[cudaGraphicsGLRegisterBuffer(&s.cudaPosBuffer, s.glPosBuffer, cudaGraphicsRegisterFlagsWriteDiscard);] HOT 1
- ValueError: Unknown CUDA arch (8.9) or GPU not supported
- On the issue of differences in training visualization and testing effectiveness
- False error in training
- FileNotFoundError: [Errno 2] No such file or directory: './checkpoints/face_recon/epoch_latest.pth'
- Use this project with recent GPU ? HOT 6
- Open mouth HOT 2
- A little confusion about mask used for computing feat loss HOT 1
- Pretrained model
- No module named 'models.arcface_torch' HOT 1
- RuntimeError: CUDA error: no kernel image is available for execution on the device
- ImportError: DLL load failed HOT 2
- RuntimeError: Error building extension 'nvdiffrast_plugin_gl': ninja: error: build.ninja:3: lexing error HOT 1
- What does align_img do in test.py? HOT 1
- error while running
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd3 in position 1454: invalid continuation byte
- ImportError: libtorch_cpu.so: undefined symbol: iJIT_IsProfilingActive HOT 5
- resnet50-0676ba61.pth
- Thank you for your work. There is no result showing in preprocess_in_th_wild.py
- Requirements for topology files
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 deep3dfacerecon_pytorch.