forked from GKalliatakis/DisplaceNet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhdf5_creation_example.py
27 lines (19 loc) · 1.37 KB
/
hdf5_creation_example.py
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
# -*- coding: utf-8 -*-
""" Creates a single HDF5 file containing a large number of images and their respective annotations (from EMOTIC Dataset).
"""
from preprocessing.emotic.hdf5_controller import Controller
hdf5_file_name = 'EMOTIC-VAD-regression.hdf5'
train_csv_file_path ='/home/gkallia/git/emotic-VAD-classification/dataset/EMOTIC_resources/CSV/train.csv'
val_csv_file_path ='/home/gkallia/git/emotic-VAD-classification/dataset/EMOTIC_resources/CSV/val.csv'
test_csv_file_path ='/home/gkallia/git/emotic-VAD-classification/dataset/EMOTIC_resources/CSV/test.csv'
cropped_imgs_dir ='/home/gkallia/git/emotic-VAD-classification/dataset/EMOTIC_resources/cropped_imgs/'
entire_imgs_dir = '/home/gkallia/git/emotic-VAD-classification/dataset/EMOTIC_resources/entire_multiple_imgs/'
main_numpy_dir ='/home/gkallia/git/emotic-VAD-classification/dataset/EMOTIC_resources/VAD-regression/numpy_matrices/'
controller = Controller(hdf5_file=hdf5_file_name,
train_csv_file_path=train_csv_file_path,
val_csv_file_path=val_csv_file_path,
test_csv_file_path=test_csv_file_path,
cropped_imgs_dir=cropped_imgs_dir,
entire_imgs_dir=entire_imgs_dir,
main_numpy_dir=main_numpy_dir)
create_hdf5 = controller.create_hdf5_VAD_regression(dataset='EMOTIC', input_size=224)