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.46k stars 91 forks source link

Error loading Pre-trained flan-t5-base #68

Closed gkuberreddy closed 9 months ago

gkuberreddy commented 9 months ago

Hi, Thanks for your great work. I am currently trying to run demo.py using the command shown in your ReadMe file. However, I get the error while loading the pre-trained model. The error is at the pre-trained model loading from a local repo where flan-t5-base is already there and I give the path to that local directory. PFA the erorr I am getting and look forward to your solution for this

Screenshot 2024-01-04 at 12 06 41 PM Screenshot 2024-01-04 at 12 06 34 PM

Thanks in advance.

billl-jiang commented 9 months ago

Hi, @gkuberreddy

Thank you for reaching out and for your kind words about our work. Regarding the error you are experiencing while loading the pre-trained model, it indeed seems to be related to the error while downloading the checkpoints.

To resolve this, you may need to download the actual large files using Git LFS. You can do this by executing the following command in your repository's directory:

git lfs pull --include <files to download> --exclude <files to exclude>

Replace with the specific files you need, and with any files you don't want to download. After running this command, the actual content of the large files should be downloaded, replacing the pointers.

It's also a good practice to check the size of the files after downloading to ensure that they are complete. Usually, once the LFS files are properly downloaded, the issue you described should be resolved.

I hope this helps! Please let me know if you have any further questions or if there's anything else I can assist you with. If this resolves your issue, feel free to close the issue on GitHub.

gkuberreddy commented 9 months ago

@billl-jiang , Thank you very much for the quick response. That worked.

Pcookie commented 1 week ago

@billl-jiang , Thank you very much for the quick response. That worked.

Hello, I still don't understand the above meaning. Do I need to modify some code in the Python project, or what should I do? Execute that command in the project directory, but what path should I fill in for "files to download"?