OpenMotionLab / MotionGPT

[NeurIPS 2023] MotionGPT: Human Motion as a Foreign Language, a unified motion-language generation model using LLMs
https://motion-gpt.github.io
MIT License
1.38k stars 85 forks source link

fix windows path error #66

Closed chaiyuntian closed 6 months ago

chaiyuntian commented 6 months ago

On windows yamls = glob.glob(os.path.join(filepath, '*', '*.yaml')) will produce double backslash. So nodes = yaml.replace('.yaml', '').replace('/', '.') will not work as expected. Using os.sep will fix the issue: https://github.com/OpenMotionLab/MotionGPT/issues/65

UnrealXinda commented 6 months ago

Confirmed that this change fixes the issue linked.