https://github.com/ShikamaruZhang/MANN
Raw File
Tip revision: 914f5ddb06a3853f2f60a09d156702154b084cb3 authored by HE ZHANG on 27 July 2018, 20:03:31 UTC
change-index
Tip revision: 914f5dd
main.py
import numpy as np
import tensorflow as tf
from MANN import MANN


num_joints  = 27
num_styles  = 6
datapath    = './data' 
savepath    = './training'
num_experts = 8
index_gatingIn = [285, 286, 287, 
                  345, 346, 347, 
                  393, 394, 395, 
                  341, 342, 343,
                  84,  85,  86, 87, 88, 89, 90]

def main():
    rng  = np.random.RandomState(23456)
    sess = tf.Session()
    mann = MANN(num_joints,
                num_styles,
                rng,
                sess,
                datapath, savepath,
                num_experts,
                hidden_size = 512,
                hidden_size_gt = 32, 
                index_gating = index_gatingIn,
                batch_size = 32 , epoch = 150, Te = 10, Tmult =2, 
                learning_rate_ini = 0.0001, weightDecay_ini = 0.0025, keep_prob_ini = 0.7)
    
    mann.build_model()
    mann.train()
    
    
if __name__ =='__main__':
    main()
back to top