DeepMotionEditing / deep-motion-editing

An end-to-end library for editing and rendering motion of 3D characters with deep learning [SIGGRAPH 2020]
BSD 2-Clause "Simplified" License
1.58k stars 256 forks source link

Unknown Skeleton after defining joints in preprocess.py #128

Closed graham-eisele closed 3 years ago

graham-eisele commented 3 years ago

I still get error

Traceback (most recent call last): File "datasets/preprocess.py", line 67, in <module> collect_bvh(prefix, character, files) File "datasets/preprocess.py", line 19, in collect_bvh file = BVH_file(data_path + character + '/' + motion) File "/home/graham/Desktop/deep-motion-editing-master/retargeting/datasets/bvh_parser.py", line 126, in __init__ raise Exception('Unknown skeleton') Exception: Unknown skeleton graham@graham-Virtualbox:~/Des

even after defining the joints and effectors in preprocess.py.

graham-eisele commented 3 years ago

I have fixed this error after removing a part of the skeleton and adding the if statements, but now I get the error:

Traceback (most recent call last): File "datasets/preprocess.py", line 67, in <module> collect_bvh(prefix, character, files) File "datasets/preprocess.py", line 19, in collect_bvh file = BVH_file(data_path + character + '/' + motion) File "/home/graham/Desktop/deep-motion-editing-master/retargeting/datasets/bvh_parser.py", line 280, in __init__ raise Exception('Problem in file', file_path) Exception: ('Problem in file', './datasets/Mixamo/Spongebob/BossIntro_Shot_001.bvh')

graham-eisele commented 3 years ago

Ok, I believe is resulting because the data is from outside of mixamo, so I used a different model and used animations from mixamo and the preprocessing worked, but when running train.py it results in this error:

File "train.py", line 54, in <module> main() File "train.py", line 38, in main model.optimize_parameters() File "/home/graham/Desktop/deep-motion-editing-master/retargeting/models/architecture.py", line 249, in optimize_parameters self.backward_D() File "/home/graham/Desktop/deep-motion-editing-master/retargeting/models/architecture.py", line 174, in backward_D fake = self.fake_pools[i].query(self.fake_pos[2 - i]) IndexError: list index out of range