-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathrun_video.py
41 lines (32 loc) · 1.09 KB
/
run_video.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import os
from avsr import run_experiment
os.environ['CUDA_VISIBLE_DEVICES'] = "0"
os.environ['TF_CPP_MIN_LOG_LEVEL'] = "2" # ERROR
def main():
records_path = './data/'
video_train_record = records_path + 'rgb36lips_train_success_aus.tfrecord'
video_test_record = records_path + 'rgb36lips_test_success_aus.tfrecord'
labels_train_record = records_path + 'characters_train_success.tfrecord'
labels_test_record = records_path + 'characters_test_success.tfrecord'
iterations = (
(100, 20), # clean
)
learning_rates = (
(0.001, 0.0001), # clean
)
logfile = 'lrs2_vid2chars'
run_experiment(
video_train_record=video_train_record,
video_test_record=video_test_record,
labels_train_record=labels_train_record,
labels_test_record=labels_test_record,
iterations=iterations,
learning_rates=learning_rates,
architecture='unimodal',
logfile=logfile,
video_processing='resnet_cnn',
input_modality='video',
regress_aus=True,
)
if __name__ == '__main__':
main()