MotionGPT3 icon indicating copy to clipboard operation
MotionGPT3 copied to clipboard

Strange Visualization

Open bopeng5221 opened this issue 1 year ago • 2 comments

Hi,

Great follow up work on MotionGPT. I'm following the readme just fine trying to run the demo. But after visulization, I got strange results and there's no bug. Can you guys help me with this? I've also attached the terminal output from running demo.py.

Thanks! Percy

Image Image Image Image Image

bopeng5221 avatar Oct 27 '25 03:10 bopeng5221

Thanks for the follow-up! The results do look like randomly initialized generation, which usually means the model weights weren’t actually loaded.

Please double-check the following:

  1. Config path Ensure TEST.CHECKPOINTS points to the updated checkpoint file.

  2. Checkpoint structure motiongpt.ckpt should be a dict with a top-level key "state_dict", and that value should 直接包含了模型的参数。 It should not be missing "state_dict" and it should not contain another nested "state_dict" inside it. (Some older files had this extra nesting; those have now been fixed.)

  3. Load with validation

# Example loading pattern
sd = ckpt['state_dict']
missing, unexpected = model.load_state_dict(sd, strict=False)
print("Missing keys:", missing)
print("Unexpected keys:", unexpected)
# For CI or stricter checks, use strict=True to fail fast on mismatches
# model.load_state_dict(sd, strict=True)

If you’re using an older local file, please re-download the corrected checkpoint (Google Drive/ Hugging Face) or convert your old file into {'state_dict':state_dict, 'epoch':-1}. Our latest uploads have the proper dictionary layout.

BoifZ avatar Oct 27 '25 05:10 BoifZ

Great, I've solved the problem by downloading the checkpoint from hugging face. I was downloading from this link before which caused the problem.

bopeng5221 avatar Oct 27 '25 06:10 bopeng5221