Comments (2)
I'm trying to visualize the human motions with the given 6D rotation representations in "motions_processed" folder. However, with the following code, the visualization result is quite weird.
Could you provide some guidance?
from human_body_prior.body_model.body_model import BodyModel import numpy as np from pytorch3d import transforms from common.quaternion import * imw, imh = 800, 800 mv = MeshViewer(width=imw, height=imh, use_offscreen=False) bm_fname = '/smplh/neutral/model.npz' bm = BodyModel(bm_fname=bm_fname, num_betas=10) data1 = np.load("./data/motions_processed/person1/6035.npy") rot_6d = data1[..., 62 * 3:62 * 3 + 21 * 6] rot_matrix = cont6d_to_matrix(torch.from_numpy(rot_6d.reshape(-1, 6))) rot_axis_angle = transforms.matrix_to_axis_angle(rot_matrix).view(-1, 63) body_pose_beta = bm(pose_body=rot_axis_angle) for fId in tqdm.tqdm(range(body_pose_beta.v.shape[0])): body_mesh = trimesh.Trimesh(vertices=convert(body_pose_beta.v[fId]), faces=bm.f, vertex_colors=np.tile(colors['grey'], (6890, 1))) mv.viewer.render_lock.acquire() mv.set_static_meshes([body_mesh]) mv.viewer.render_lock.release() plt.pause(1)
hello, do you solve the problem?
from intergen.
Hi @TLDX-XIONG ,
Yes, I did manage to solve the problem. However, it's been a while since I worked on it, so I don't recall all the specifics of the correct visualization method. From what I remember, the issue with the visualization script above was related to the Rotation 6D representation. You might want to try visualizing it by taking the 6D as either columns or rows of the rotation matrix. One of these approaches should yield the correct visualization.
from intergen.
Related Issues (20)
- Missing 3 joints from SMPL HOT 1
- Person-to-person generation.
- pip install -r requirements.txt failed
- Question for input data HOT 1
- How to visualize the generated results with mesh? HOT 1
- About converting "motions" to "motions_processed".
- intergen dataset
- latest evaluator.py HOT 1
- The specific composition of 492 columns in each npy file HOT 2
- Global_mean.npy and global_std.npy calculations
- WRONG 6d rotation params of motion_processed about joint 20(left_hand) and 21(right_hand) HOT 7
- Metric emb scale
- World Frame Determination HOT 1
- Request for Intergen Experiment Source Code
- How to process SMPL to 6D representation
- Recovered Mesh from Rotation in processed_motion
- Resulting R_precision accuracy is always higher than the ground truth HOT 1
- Question about the SMPL-H skeleton name of npy file in motion_processed?
- [training.py] Missing Required Data Files: 'ignore_list.txt' and 'train.txt' 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 intergen.