Strange Visualization
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
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:
-
Config path Ensure TEST.CHECKPOINTS points to the updated checkpoint file.
-
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.)
-
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.
Great, I've solved the problem by downloading the checkpoint from hugging face. I was downloading from this link before which caused the problem.