├── MotionGPT_colab.ipynb
└── README.md
/MotionGPT_colab.ipynb:
--------------------------------------------------------------------------------
1 | {
2 | "cells": [
3 | {
4 | "cell_type": "markdown",
5 | "metadata": {
6 | "id": "view-in-github"
7 | },
8 | "source": [
9 | "[](https://colab.research.google.com/github/camenduru/MotionGPT-colab/blob/main/MotionGPT_colab.ipynb)"
10 | ]
11 | },
12 | {
13 | "cell_type": "code",
14 | "execution_count": null,
15 | "metadata": {
16 | "id": "VjYy0F2gZIPR"
17 | },
18 | "outputs": [],
19 | "source": [
20 | "%cd /content\n",
21 | "!git clone -b dev https://github.com/camenduru/MotionGPT-hf\n",
22 | "%cd /content/MotionGPT-hf\n",
23 | "\n",
24 | "!apt -y install -qq aria2 libosmesa6\n",
25 | "\n",
26 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/assets/meta/mean_eval.npy -d /content/MotionGPT-hf/assets/meta -o mean_eval.npy\n",
27 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/assets/meta/mean.npy -d /content/MotionGPT-hf/assets/meta -o mean.npy\n",
28 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/assets/meta/std_eval.npy -d /content/MotionGPT-hf/assets/meta -o std_eval.npy\n",
29 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/assets/meta/std.npy -d /content/MotionGPT-hf/assets/meta -o std.npy\n",
30 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/assets/videos/example0_blender.mp4 -d /content/MotionGPT-hf/assets/videos -o example0_blender.mp4\n",
31 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/deps/smpl/smpl_models/gmm_08.pkl -d /content/MotionGPT-hf/deps/smpl/smpl_models -o gmm_08.pkl\n",
32 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/deps/smpl/smpl_models/neutral_smpl_mean_params.h5 -d /content/MotionGPT-hf/deps/smpl/smpl_models -o neutral_smpl_mean_params.h5\n",
33 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/deps/smpl/smpl_models/SMPL_downsample_index.pkl -d /content/MotionGPT-hf/deps/smpl/smpl_models -o SMPL_downsample_index.pkl\n",
34 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/deps/smpl/smpl_models/smpl.tar.gz -d /content/MotionGPT-hf/deps/smpl/smpl_models -o smpl.tar.gz\n",
35 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/deps/smpl/smpl_models/smpl/SMPL_FEMALE.pkl -d /content/MotionGPT-hf/deps/smpl/smpl_models/smpl -o SMPL_FEMALE.pkl\n",
36 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/deps/smpl/smpl_models/smpl/SMPL_MALE.pkl -d /content/MotionGPT-hf/deps/smpl/smpl_models/smpl -o SMPL_MALE.pkl\n",
37 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/deps/smpl/smpl_models/smpl/SMPL_NEUTRAL.pkl -d /content/MotionGPT-hf/deps/smpl/smpl_models/smpl -o SMPL_NEUTRAL.pkl\n",
38 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/deps/smpl/smpl_models/smplh/mano_v1_2.zip -d /content/MotionGPT-hf/deps/smpl/smpl_models/smplh -o mano_v1_2.zip\n",
39 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/deps/smpl/smpl_models/smplh/SMPLH_FEMALE.npz -d /content/MotionGPT-hf/deps/smpl/smpl_models/smplh -o SMPLH_FEMALE.npz\n",
40 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/deps/smpl/smpl_models/smplh/SMPLH_MALE.npz -d /content/MotionGPT-hf/deps/smpl/smpl_models/smplh -o SMPLH_MALE.npz\n",
41 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/deps/smpl/smpl_models/smplh/SMPLH_NEUTRAL.npz -d /content/MotionGPT-hf/deps/smpl/smpl_models/smplh -o SMPLH_NEUTRAL.npz\n",
42 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/deps/smpl/smpl_models/smplh/smplh.tar.xz -d /content/MotionGPT-hf/deps/smpl/smpl_models/smplh -o smplh.tar.xz\n",
43 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/spaces/OpenMotionLab/MotionGPT/resolve/main/deps/smpl/smpl_models/smplx_parts_segm.pkl -d /content/MotionGPT-hf/deps/smpl/smpl_models -o smplx_parts_segm.pkl\n",
44 | "\n",
45 | "!pip install -q gradio==3.50.2 pytorch-lightning omegaconf bert-score pyglet chumpy mapbox-earcut\n",
46 | "!pip install -q PyOpenGL_accelerate smplx trimesh triangle ftfy pyrender -U\n",
47 | "!pip install -q pyopengl==3.1.4 -U\n",
48 | "\n",
49 | "!python app.py"
50 | ]
51 | }
52 | ],
53 | "metadata": {
54 | "accelerator": "GPU",
55 | "colab": {
56 | "gpuType": "T4",
57 | "provenance": []
58 | },
59 | "kernelspec": {
60 | "display_name": "Python 3",
61 | "name": "python3"
62 | },
63 | "language_info": {
64 | "name": "python"
65 | }
66 | },
67 | "nbformat": 4,
68 | "nbformat_minor": 0
69 | }
70 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 🐣 Please follow me for new updates https://twitter.com/camenduru
2 | 🔥 Please join our discord server https://discord.gg/k5BwmmvJJU
3 | 🥳 Please join my patreon community https://patreon.com/camenduru
4 |
5 | ### 🦒 Colab
6 |
7 | | Colab | Info
8 | | --- | --- |
9 | [](https://colab.research.google.com/github/camenduru/MotionGPT-colab/blob/main/MotionGPT_colab.ipynb) | MotionGPT_colab
10 |
11 | ## 🦆 Kaggle
12 |
13 | | Kaggle | Info
14 | | --- | --- |
15 | [](https://kaggle.com/camenduru/motiongpt) | motiongpt_kaggle
16 |
17 | ### 🧬 Code
18 | https://github.com/OpenMotionLab/MotionGPT
19 |
20 | ### 📄 Paper
21 | https://arxiv.org/abs/2306.14795
22 |
23 | ### 🌐 Page
24 | https://motion-gpt.github.io/
25 |
26 | ### 🖼 Output
27 |
28 | https://github.com/camenduru/MotionGPT-colab/assets/54370274/4b684b53-8e37-4af1-9be1-b2ccddf0695e
29 |
--------------------------------------------------------------------------------