Comments (6)
Hi @kallivad,
You can check this projection function:
Line 442 in 3e04e0f
For a sample usage, check this:
Line 78 in 3e04e0f
from vibe.
I am closing it now, feel free to ask if you need help about it.
from vibe.
Hey! I'm trying to get 2D pose from VIBE Output. How do I use the perspective projection function to do this? What inputs should I pass?
from vibe.
Same question.
For function "perspective_projection(points, rotation, translation,focal_length, camera_center)"
How to calculate Camera rotation、Camera translation、Focal length、Camera center
from vibe.
For classical intrinsic and extrinsic matrix, the following solution works well.
cam = dicts['orig_cam']
cam_s = cam[0:1]
cam_pos = cam[2:]
flength = w / 2.
tz = flength / (0.5 * w * cam_s)
trans = -np.hstack([cam_pos, tz])
camera_data['color_focal_length'].append(np.array([w / 2, w / 2]))
camera_data['color_center'].append(np.array([[w / 2, h / 2]]))
camera_data['c2w'].append(np.eye(4))
camera_data['c2w'][:3,3] = trans
from vibe.
For classical intrinsic and extrinsic matrix, the following solution works well.
cam = dicts['orig_cam'] cam_s = cam[0:1] cam_pos = cam[2:] flength = w / 2. tz = flength / (0.5 * w * cam_s) trans = -np.hstack([cam_pos, tz]) camera_data['color_focal_length'].append(np.array([w / 2, w / 2])) camera_data['color_center'].append(np.array([[w / 2, h / 2]])) camera_data['c2w'].append(np.eye(4)) camera_data['c2w'][:3,3] = trans
I found the cam params converge worse, and i use weak perspective in my code, in which kpy_2d = scale(kyp3d[, :2] + txy ). I think the key reason is the focal length of the dataset is different with each image, and it range from 400 mm to 800 mm. So maybe the network cannot regress the scale well?
As "It is common to assume a fixed focal length to perform perspective projection. " . I wonder if the performance would be improved if i use perspective projection instead of weak perspective?
from vibe.
Related Issues (20)
- The vibe_data.zip unable to download,why? [BUG]
- [BUG]About running too slow
- [BUG] loss will suddenly increase very high in the train process
- Converting weak perspective camera parameters to Blender camera projection models HOT 1
- [FEATURE]How to get an output video with a frame rate of 60fps?
- The requirements are too out-dated HOT 2
- COLAB not working HOT 1
- Code of checking that all joints are visible[BUG] HOT 1
- [FEATURE]dataset on the amass website is inconsistent with the dataset used for this project HOT 3
- [BUG] Bbox data error when preprocessing the posetrack dataset
- Number of body joints?
- Available Human3.6 processed file for Research? HOT 1
- [Clarification] What does `(sx,sy,tx,ty)` mean?
- [BUG] Fbx conversion script only giving out one person HOT 3
- [BUG]can anybody have AMASS dataset, I dowload many times but fialed every times.thanks.
- About coordinate system of 'joints3d'
- Unable to download BMLrub and CMU
- [BUG] How do I run VIBE on CPU? HOT 1
- [BUG] In fbx_output, why does quaternion rotation uses the `@` operator instead of the `*` operator? HOT 1
- : cannot connect to X server
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 vibe.