Update scripts/README.md
Browse files- scripts/README.md +27 -27
scripts/README.md
CHANGED
|
@@ -6,7 +6,7 @@ This document provides the commands to prepare various EMG datasets for pretrain
|
|
| 6 |
|
| 7 |
Remember to add the flag `--download_data` if the dataset is not downloaded yet.
|
| 8 |
|
| 9 |
-
Substitute the `$
|
| 10 |
|
| 11 |
The required libraries for running the scripts are located inside the `requirements.txt` file.
|
| 12 |
|
|
@@ -18,8 +18,8 @@ For the pretraining:
|
|
| 18 |
|
| 19 |
```bash
|
| 20 |
python scripts/emg2pose.py \
|
| 21 |
-
--data_dir $
|
| 22 |
-
--save_dir $
|
| 23 |
--window_size 1000 \
|
| 24 |
--stride 500
|
| 25 |
```
|
|
@@ -28,8 +28,8 @@ python scripts/emg2pose.py \
|
|
| 28 |
|
| 29 |
```bash
|
| 30 |
python scripts/db6.py \
|
| 31 |
-
--data_dir $
|
| 32 |
-
--save_dir $
|
| 33 |
--window_size 1000 \
|
| 34 |
--stride 500
|
| 35 |
```
|
|
@@ -38,8 +38,8 @@ python scripts/db6.py \
|
|
| 38 |
|
| 39 |
```bash
|
| 40 |
python scripts/db7.py \
|
| 41 |
-
--data_dir $
|
| 42 |
-
--save_dir $
|
| 43 |
--window_size 1000 \
|
| 44 |
--stride 500
|
| 45 |
```
|
|
@@ -54,8 +54,8 @@ For the downstream tasks:
|
|
| 54 |
|
| 55 |
```bash
|
| 56 |
python scripts/db5.py \
|
| 57 |
-
--data_dir $
|
| 58 |
-
--save_dir $
|
| 59 |
--window_size 200 \
|
| 60 |
--stride 50
|
| 61 |
```
|
|
@@ -64,8 +64,8 @@ python scripts/db5.py \
|
|
| 64 |
|
| 65 |
```bash
|
| 66 |
python scripts/db5.py \
|
| 67 |
-
--data_dir $
|
| 68 |
-
--save_dir $
|
| 69 |
--window_size 1000 \
|
| 70 |
--stride 250
|
| 71 |
```
|
|
@@ -74,10 +74,10 @@ python scripts/db5.py \
|
|
| 74 |
|
| 75 |
```bash
|
| 76 |
python scripts/epn.py \
|
| 77 |
-
--data_dir $
|
| 78 |
-
--source_training $
|
| 79 |
-
--source_testing $
|
| 80 |
-
--dest_dir $
|
| 81 |
--window_size 200
|
| 82 |
```
|
| 83 |
|
|
@@ -85,10 +85,10 @@ python scripts/epn.py \
|
|
| 85 |
|
| 86 |
```bash
|
| 87 |
python scripts/epn.py \
|
| 88 |
-
--data_dir $
|
| 89 |
-
--source_training $
|
| 90 |
-
--source_testing $
|
| 91 |
-
--dest_dir $
|
| 92 |
--window_size 1000
|
| 93 |
```
|
| 94 |
|
|
@@ -96,8 +96,8 @@ python scripts/epn.py \
|
|
| 96 |
|
| 97 |
```bash
|
| 98 |
python scripts/uci.py \
|
| 99 |
-
--data_dir $
|
| 100 |
-
--save_dir $
|
| 101 |
--window_size 200 \
|
| 102 |
--stride 50
|
| 103 |
```
|
|
@@ -106,8 +106,8 @@ python scripts/uci.py \
|
|
| 106 |
|
| 107 |
```bash
|
| 108 |
python scripts/uci.py \
|
| 109 |
-
--data_dir $
|
| 110 |
-
--save_dir $
|
| 111 |
--window_size 1000 \
|
| 112 |
--stride 250
|
| 113 |
```
|
|
@@ -116,8 +116,8 @@ python scripts/uci.py \
|
|
| 116 |
|
| 117 |
```bash
|
| 118 |
python scripts/db8.py \
|
| 119 |
-
--data_dir $
|
| 120 |
-
--save_dir $
|
| 121 |
--window_size 200 \
|
| 122 |
--stride 200
|
| 123 |
```
|
|
@@ -126,8 +126,8 @@ python scripts/db8.py \
|
|
| 126 |
|
| 127 |
```bash
|
| 128 |
python scripts/db8.py \
|
| 129 |
-
--data_dir $
|
| 130 |
-
--save_dir $
|
| 131 |
--window_size 1000 \
|
| 132 |
--stride 1000
|
| 133 |
```
|
|
|
|
| 6 |
|
| 7 |
Remember to add the flag `--download_data` if the dataset is not downloaded yet.
|
| 8 |
|
| 9 |
+
Substitute the `$DATA_PATH` environment variable with your path for saving the dataset.
|
| 10 |
|
| 11 |
The required libraries for running the scripts are located inside the `requirements.txt` file.
|
| 12 |
|
|
|
|
| 18 |
|
| 19 |
```bash
|
| 20 |
python scripts/emg2pose.py \
|
| 21 |
+
--data_dir $DATA_PATH/datasets/emg2pose_data/ \
|
| 22 |
+
--save_dir $DATA_PATH/datasets/emg2pose_data/h5/ \
|
| 23 |
--window_size 1000 \
|
| 24 |
--stride 500
|
| 25 |
```
|
|
|
|
| 28 |
|
| 29 |
```bash
|
| 30 |
python scripts/db6.py \
|
| 31 |
+
--data_dir $DATA_PATH/datasets/ninapro/DB6/ \
|
| 32 |
+
--save_dir $DATA_PATH/datasets/ninapro/DB6/h5/ \
|
| 33 |
--window_size 1000 \
|
| 34 |
--stride 500
|
| 35 |
```
|
|
|
|
| 38 |
|
| 39 |
```bash
|
| 40 |
python scripts/db7.py \
|
| 41 |
+
--data_dir $DATA_PATH/datasets/ninapro/DB7/ \
|
| 42 |
+
--save_dir $DATA_PATH/datasets/ninapro/DB7/h5/ \
|
| 43 |
--window_size 1000 \
|
| 44 |
--stride 500
|
| 45 |
```
|
|
|
|
| 54 |
|
| 55 |
```bash
|
| 56 |
python scripts/db5.py \
|
| 57 |
+
--data_dir $DATA_PATH/datasets/ninapro/DB5/ \
|
| 58 |
+
--save_dir $DATA_PATH/datasets/ninapro/DB5/h5/ \
|
| 59 |
--window_size 200 \
|
| 60 |
--stride 50
|
| 61 |
```
|
|
|
|
| 64 |
|
| 65 |
```bash
|
| 66 |
python scripts/db5.py \
|
| 67 |
+
--data_dir $DATA_PATH/datasets/ninapro/DB5/ \
|
| 68 |
+
--save_dir $DATA_PATH/datasets/ninapro/DB5/h5/ \
|
| 69 |
--window_size 1000 \
|
| 70 |
--stride 250
|
| 71 |
```
|
|
|
|
| 74 |
|
| 75 |
```bash
|
| 76 |
python scripts/epn.py \
|
| 77 |
+
--data_dir $DATA_PATH/datasets/EPN612/ \
|
| 78 |
+
--source_training $DATA_PATH/datasets/EPN612/trainingJSON/ \
|
| 79 |
+
--source_testing $DATA_PATH/datasets/EPN612/testingJSON/ \
|
| 80 |
+
--dest_dir $DATA_PATH/datasets/EPN612/h5/ \
|
| 81 |
--window_size 200
|
| 82 |
```
|
| 83 |
|
|
|
|
| 85 |
|
| 86 |
```bash
|
| 87 |
python scripts/epn.py \
|
| 88 |
+
--data_dir $DATA_PATH/datasets/EPN612/ \
|
| 89 |
+
--source_training $DATA_PATH/datasets/EPN612/trainingJSON/ \
|
| 90 |
+
--source_testing $DATA_PATH/datasets/EPN612/testingJSON/ \
|
| 91 |
+
--dest_dir $DATA_PATH/datasets/EPN612/h5/ \
|
| 92 |
--window_size 1000
|
| 93 |
```
|
| 94 |
|
|
|
|
| 96 |
|
| 97 |
```bash
|
| 98 |
python scripts/uci.py \
|
| 99 |
+
--data_dir $DATA_PATH/datasets/UCI_EMG/EMG_data_for_gestures-master/ \
|
| 100 |
+
--save_dir $DATA_PATH/datasets/UCI_EMG/EMG_data_for_gestures-master/h5/ \
|
| 101 |
--window_size 200 \
|
| 102 |
--stride 50
|
| 103 |
```
|
|
|
|
| 106 |
|
| 107 |
```bash
|
| 108 |
python scripts/uci.py \
|
| 109 |
+
--data_dir $DATA_PATH/datasets/UCI_EMG/EMG_data_for_gestures-master/ \
|
| 110 |
+
--save_dir $DATA_PATH/datasets/UCI_EMG/EMG_data_for_gestures-master/h5/ \
|
| 111 |
--window_size 1000 \
|
| 112 |
--stride 250
|
| 113 |
```
|
|
|
|
| 116 |
|
| 117 |
```bash
|
| 118 |
python scripts/db8.py \
|
| 119 |
+
--data_dir $DATA_PATH/datasets/ninapro/DB8/ \
|
| 120 |
+
--save_dir $DATA_PATH/datasets/ninapro/DB8/h5/ \
|
| 121 |
--window_size 200 \
|
| 122 |
--stride 200
|
| 123 |
```
|
|
|
|
| 126 |
|
| 127 |
```bash
|
| 128 |
python scripts/db8.py \
|
| 129 |
+
--data_dir $DATA_PATH/datasets/ninapro/DB8/ \
|
| 130 |
+
--save_dir $DATA_PATH/datasets/ninapro/DB8/h5/ \
|
| 131 |
--window_size 1000 \
|
| 132 |
--stride 1000
|
| 133 |
```
|