una-dinosauria / 3d-pose-baseline

A simple baseline for 3d human pose estimation in tensorflow. Presented at ICCV 17.
MIT License
1.41k stars 355 forks source link

How to import maya_skeleton.py to maya? #179

Closed scucszw closed 4 years ago

scucszw commented 4 years ago

I have reached the fifth step,open maya and import maya/maya_skeleton.py I added python file in the maya script editor but nothing happened. This is where I made changes,Can someone tell me the correct way?

openpose_images = "/D:/project/30posebaseline/3d-pose-baseline/path/to/frames"

threed_pose_baseline = "/D:/project/30posebaseline/3d-pose-baseline/"

input_json_path = [os.path.join(threed_pose_baseline, "maya/{0}.json".format(_data)) for _data in ["3d_data.json", "2d_data.json"]]

scucszw commented 4 years ago

I got it,you must call main method in maya.I hope this can help someone like me

import maya_skeleton reload(maya_skeleton) maya_skeleton.main()