setarehc / diffusion-motion-inbetweening

The official implementation of Flexible Motion In-betweening with Diffusion Models, SIGGRAPH 2024
https://setarehc.github.io/CondMDI/
Other
65 stars 4 forks source link

RuntimeError when running motion synthesis #7

Closed indigolxy closed 1 week ago

indigolxy commented 1 week ago

Hello,

I have encountered a runtime error while running

python -m sample.synthesize --model_path ./save/condmdi_uncond/model000500000.pt --num_samples 10 --num_repetitions 3

In line 34 of the file fk.py ( in function __init__) self.positions[1:] -= self.positions[self.parents[1:]] reported the error RuntimeError: The size of tensor a (23) must match the size. I believe it may be due to a size mismatch between tensors. It turns out that the shape of self.positions is (24,3) and the shape of self.parents is 52, causing the inconsistency.

Could you please look into this issue? I look forward to your response and am eager to continue contributing to and using this project.

indigolxy commented 1 week ago

Problem solved after adapting #6 !