XuJiacong / Animal3D

MIT License
20 stars 1 forks source link

Promblem with shape parameter #4

Open yhd-ai opened 9 months ago

yhd-ai commented 9 months ago

Hi authors, I am very interested in your work. I want to use shape parameters of your dataset to generate some animal meshes via SMAL model. But I am a little confused about the length of shape parameters. I found SMAL need 41 shape parameters and for your dataset there are 20 parameter for "shape" and another "21" for "shape_extra". should I concat them into one list like blow?

`` import json import numpy as np

poseData = [] betasData = [] with open('train.json') as f: data = json.load(f)

for dataInstance in data['data']:
    pose =  dataInstance['pose']
    betas =  dataInstance['shape']+dataInstance['shape_extra']
    #print(len(betas))
    poseData.append(pose)
    betasData.append(betas)

``

luoxue-star commented 4 months ago

Yes, you are right. You can simply concat shape and shape extra.