deep-motion-editing icon indicating copy to clipboard operation
deep-motion-editing copied to clipboard

retarget a bvh file to use it in style transfer

Open kotaxyz opened this issue 2 years ago • 1 comments

hello there, thanks alot for this awesome work, i need help on how to retarget a bvh file to an acceptable bone format to be able to use it in style transfer because i always get errors when using my bvh data , i think this is due to difference in bone number and naming thats why i want to run retarget

kotaxyz avatar Aug 06 '23 06:08 kotaxyz

i get this error when i try to do style transfer to any bvh file except the files in xia_test

(Deep-motion-editing) C:\Users\Genesis\github\deep-motion-editing>python style_transfer/test.py --content_src style_transfer/data/xia_test/bassball.bvh --style_src style_transfer/data/xia_test/angry_13_000.bvh --output_dir style_transfer/demo_results/demo_3d_2 C:\Users\Genesis\github\deep-motion-editing\style_transfer\probe..\pretrained already exists. C:\Users\Genesis\github\deep-motion-editing\style_transfer\probe..\pretrained\pth already exists. C:\Users\Genesis\github\deep-motion-editing\style_transfer\probe..\pretrained\log already exists. C:\Users\Genesis\github\deep-motion-editing\style_transfer\probe..\pretrained\info already exists. C:\Users\Genesis\github\deep-motion-editing\style_transfer\probe..\pretrained\output already exists. C:\Users\Genesis\github\deep-motion-editing\style_transfer\probe..\data\xia_norms already exists. Resume from iteration 100000 Traceback (most recent call last): File "C:\Users\Genesis\github\deep-motion-editing\style_transfer\test.py", line 57, in main(args) File "C:\Users\Genesis\github\deep-motion-editing\style_transfer\test.py", line 39, in main co_data = process_single_bvh(args.content_src, config, to_batch=True) File "C:\Users\Genesis\github\deep-motion-editing\style_transfer\data_loader.py", line 204, in process_single_bvh anim = AnimationData.from_BVH(filename, downsample=downsample, skel=skel, trim_scale=4) File "C:\Users\Genesis\github\deep-motion-editing\style_transfer..\utils\animation_data.py", line 394, in from_BVH return cls.from_rotations_and_root_positions(rotations, root_positions, skel=skel, frametime=frametime * downsample) File "C:\Users\Genesis\github\deep-motion-editing\style_transfer..\utils\animation_data.py", line 373, in from_rotations_and_root_positions global_positions = forward_rotations(skel, rotations, root_positions, trim=True) File "C:\Users\Genesis\github\deep-motion-editing\style_transfer..\utils\animation_data.py", line 31, in forward_rotations glb[..., i, :] = np.matmul(transforms[..., pi, :, :], IndexError: index 29 is out of bounds for axis 1 with size 29

kotaxyz avatar Aug 06 '23 06:08 kotaxyz