Skip to content
Snippets Groups Projects
Commit 80bf682d authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Merge branch 'dev_branch' into 'master'

Fixed the path bug in the video_sparse_coding config file

See merge request !18
parents c32d6518 60e13dca
No related branches found
No related tags found
1 merge request!18Fixed the path bug in the video_sparse_coding config file
Pipeline #
#!/usr/bin/env python #!/usr/bin/env python
import os
from bob.pad.face.preprocessor import VideoSparseCoding from bob.pad.face.preprocessor import VideoSparseCoding
#======================================================================================= #=======================================================================================
...@@ -9,9 +11,13 @@ BLOCK_SIZE = 5 ...@@ -9,9 +11,13 @@ BLOCK_SIZE = 5
BLOCK_LENGTH = 10 BLOCK_LENGTH = 10
MIN_FACE_SIZE = 50 MIN_FACE_SIZE = 50
NORM_FACE_SIZE = 64 NORM_FACE_SIZE = 64
DICTIONARY_FILE_NAMES = ["./dictionaries/dictionary_front_10_5_128.hdf5",
"./dictionaries/dictionary_hor_10_5_128.hdf5", DICTIONARY_LENGTH = 128
"./dictionaries/dictionary_vert_10_5_128.hdf5"] DIR = os.path.dirname(os.path.abspath(__file__))
DICTIONARY_FILE_NAMES = [os.path.join(DIR, "dictionaries", "dictionary_front_10_5_{}.hdf5".format(DICTIONARY_LENGTH)),
os.path.join(DIR, "dictionaries", "dictionary_hor_10_5_{}.hdf5".format(DICTIONARY_LENGTH)),
os.path.join(DIR, "dictionaries", "dictionary_vert_10_5_{}.hdf5".format(DICTIONARY_LENGTH))]
FRAME_STEP = 50 # (!) a small number of feature vectors will be computed FRAME_STEP = 50 # (!) a small number of feature vectors will be computed
EXTRACT_HISTOGRAMS_FLAG = True EXTRACT_HISTOGRAMS_FLAG = True
...@@ -24,4 +30,7 @@ preprocessor_10_5_128 = VideoSparseCoding(gblock_size = BLOCK_SIZE, ...@@ -24,4 +30,7 @@ preprocessor_10_5_128 = VideoSparseCoding(gblock_size = BLOCK_SIZE,
dictionary_file_names = DICTIONARY_FILE_NAMES, dictionary_file_names = DICTIONARY_FILE_NAMES,
frame_step = FRAME_STEP, frame_step = FRAME_STEP,
extract_histograms_flag = EXTRACT_HISTOGRAMS_FLAG, extract_histograms_flag = EXTRACT_HISTOGRAMS_FLAG,
comp_reconstruct_err_flag = COMP_RECONSTRUCT_ERR_FLAG) comp_reconstruct_err_flag = COMP_RECONSTRUCT_ERR_FLAG)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment