-
Notifications
You must be signed in to change notification settings - Fork 391
/
prepare_datasets.sh
executable file
·55 lines (39 loc) · 2.15 KB
/
prepare_datasets.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# ---------------------------
# ----- SET YOUR PATH!! -----
# ---------------------------
# This is where you want all of your tf_records to be saved:
DATA_DIR=/scratch1/storage/hmr_release_files/test_tf_datasets
# This is the directory that contains README.txt
LSP_DIR=/scratch1/storage/human_datasets/lsp_dataset
# This is the directory that contains README.txt
LSP_EXT_DIR=/scratch1/storage/human_datasets/lsp_extended
# This is the directory that contains 'images' and 'annotations'
MPII_DIR=/scratch1/storage/human_datasets/mpii
# This is the directory that contains README.txt
COCO_DIR=/scratch1/storage/coco
# This is the directory that contains README.txt, S1..S8, etc
MPI_INF_3DHP_DIR=/scratch1/storage/mpi_inf_3dhp
## Mosh
# This is the path to the directory that contains neutrSMPL_* directories
MOSH_DIR=/scratch1/storage/human_datasets/neutrMosh
# ---------------------------
# ---------------------------
# Run each command below from this directory. I advice to run each one independently.
# ---------------------------
# ----- LSP -----
python -m src.datasets.lsp_to_tfrecords --img_directory $LSP_DIR --output_directory $DATA_DIR/lsp
# ----- LSP-extended -----
python -m src.datasets.lsp_to_tfrecords --img_directory $LSP_EXT_DIR --output_directory $DATA_DIR/lsp_ext
# ----- MPII -----
python -m src.datasets.mpii_to_tfrecords --img_directory $MPII_DIR --output_directory $DATA_DIR/mpii