Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update raw_pose_processing.ipynb #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions raw_pose_processing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"%matplotlib inline\n",
"\n",
"import sys, os\n",
"from pathlib import Path\n",
"import torch\n",
"import numpy as np\n",
"import matplotlib\n",
Expand Down Expand Up @@ -253,7 +254,8 @@
" for path in pbar:\n",
" save_path = path.replace('./amass_data', './pose_data')\n",
" save_path = save_path[:-3] + 'npy'\n",
" fps = amass_to_pose(path, save_path)\n",
" if not Path(save_path).exists(): # Allow to resume work\n",
" fps = amass_to_pose(path, save_path)\n",
" \n",
" cur_count += len(paths)\n",
" print('Processed / All (fps %d): %d/%d'% (fps, cur_count, all_count) )\n",
Expand Down Expand Up @@ -328,7 +330,8 @@
"save_dir = './joints'\n",
"index_file = pd.read_csv(index_path)\n",
"total_amount = index_file.shape[0]\n",
"fps = 20"
"fps = 20\n",
"Path(save_dir).mkdir(exist_ok=True)"
]
},
{
Expand Down