-
Notifications
You must be signed in to change notification settings - Fork 1
Usage
TODO
Our synthetic database is built from the TUM-GAID dataset, which has the following file structure:
p001
p002
p003
.
.
.
p305
- b01
- b02
- b03
- b04
- back
- back2
- c01
- ...
If the database to be used does not have the following structure, it will be necessary to make modifications to the codes used to build the synthetic database.
To create a synthetic database from an existing one, the following scripts must be adapted and used:
Script that calculates and stores the silhouettes of the videos of the original dataset.
It is necessary to modify the following paths within the script:
PATH_TO_RESEARCH = '/tensorflow/models/research/' # Path to /tensorflow/models/research/ installation folder
PATH_TO_TEST_IMAGES_DIR = '/TUM_GAID/image' # Path to the original images of the dataset
OUTPUT_PATH = '/TUM_GAID/silhouettes/' # Output path
Generate artificial videos with a single subject using a background image. Background image for each subject is located into subject's back folder.
It is necessary to modify the following paths within the script:
PATH_TO_IMAGES_DIR = '/TUM_GAID/image/' # Path to the original images of the dataset
PATH_TO_SIL_DIR = '/TUM_GAID/silhouettes/' # Path to the calculated silhouettes
PATH_ID_FILE = '/TUM_GAID/tumgaidtestids.lst' # Path to id list. Used by us to build the test dataset with the indicated users
OUTPUT_PATH = "/MulPerGait_one_person/" # Output path
Generate artificial videos with two subjects.
It is necessary to modify the following paths within the script:
PATH_TO_IMAGES_DIR = '/TUM_GAID/image/' # Path to the original images of the dataset
PATH_TO_SIL_DIR = '/TUM_GAID/silhouettes/' # Path to the calculated silhouettes
PATH_ID_FILE = '/TUM_GAID/tumgaidtestids.lst' # Path to id list. Used by us to build the test dataset with the indicated users
OUTPUT_PATH = "/MulPerGait_two_persons/" # Output path
Script that calculates and stores the bounding boxes of the subjects in generated videos.
It is necessary to modify the following paths within the script:
PATH_TO_TEST_IMAGES_DIR = '/MulPerGait_two_persons/' # Path to generated dataset
OUTPUT_PATH = '/MulPerGait_two_persons_bb/' # Output path
Use the generated videos, its bounding boxes and its optical flow to obtain the tracking information of the subjects.
It is necessary to modify the following paths within the script:
PATH_TO_TEST_IMAGES_ORIGINAL_DIR = '/MulPerGait_two_persons/' # Path to generated dataset
PATH_TO_OF_DIR = '/MulPerGait_two_persons_of/' # Path to optical flow of the generated dataset
PATH_TO_BB_DIR = '/MulPerGait_two_persons_bb/' # Path to bounding boxes of the generated dataset
OUTPUT_PATH = "/MulPerGait_two_persons_cnn_tr/" # Output path
Generates samples windows with 25 frame. Synthetic videos, and their previously calculated optical flows and tracking information are used for this.
It is necessary to modify the following paths within the script:
PATH_TO_OF = '/MulPerGait_two_persons_of/' # Path to optical flow of the generated dataset
PATH_TO_TR = '/MulPerGait_two_persons_cnn_tr/' # Path to tracking information of the generated dataset
PATH_TO_IMAGE = '/MulPerGait_two_persons/' # Path to generated dataset
OUTPUT_PATH = '/MulPerGait_two_persons_cnn_25f/' # Output path
INPUT_PATH = "/inputs_N150/" # Input data from TUM-GAID dataset. Into /inputs_N150/ we have 3 folders, one for video type. Into this folders, we stored one tfrecord file per video.
OUTPUT_PATH = "/outputs/" # Output path, where we store the resulting model.
model_150_path = "/outputs/model_150.h5" # Model_150 path
INPUT_PATH = "/inputs_N155/" # Input data from TUM-GAID dataset. Into /inputs_N155/ we have 3 folders, one for video type. Into this folders, we stored one tfrecord file per video.
OUTPUT_PATH = "/outputs/" # Output path, where we store the resulting model.
PATH_ID_FILE = "tumgaidtestids.lst" # File with the IDs of the users that we are going to use
PATH_25F_INPUT = '/MulPerGait_one_person_cnn_25f/' # Path with samples windows with 25 frame
PATH_MODEL_CNN = "/outputs/model_155.h5" # Model_155 path
PATH_ID_FILE = "tumgaidtestids.lst" # File with the IDs of the users that we are going to use
PATH_25F_INPUT = '/MulPerGait_two_persons_cnn_25f/' # Path with samples windows with 25 frame
PATH_MODEL_CNN = "/outputs/model_155.h5" # Model_155 path
PATH_ID_FILE = "tumgaidtestids.lst" # File with the IDs of the users that we are going to use
PATH_25F_INPUT = '/MulPerGait_two_persons_cnn_25f/' # Path with samples windows with 25 frame
PATH_MODEL_CNN = "/outputs/model_155.h5" # Model_155 path