-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
65 lines (59 loc) · 2.22 KB
/
config.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env python
# -*- coding:UTF-8 -*-
# File Name : config.py
# Purpose :
# Creation Date : 09-04-2018
# Last Modified : Fri 18 May 2018 02:18:45 AM CST
# Created By : Jeasine Ma [jeasinema[at]gmail[dot]com]
from env import *
from utils import *
class Config(object):
def __init__(self):
# task properties
self.number_of_tasks = 10 # n_c
self.trajectory_dimension = 2 # n_dim
self.img_as_task = False
self.object_size = (32, 32)
# Toy
self.image_x_range = (-1., 1.)
self.image_y_range = (-1., 1.)
self.image_size = (100, 100) # sz_im
# YCB
# self.image_x_range = (-.45, .45)
# self.image_y_range = (-.4, .4)
# self.image_size = (224, 224) # sz_im
self.image_channels = 3 # ch_im
self.number_of_hidden = 128 # n_z
self.number_of_MP_kernels = 10 # n_k
self.number_of_oversample = 30 # n_oversample
self.trajectory_variance = 0.05
# environment
self.env = YCBEnv # class pointer
self.image_path = "./data/cdmp_images"
self.number_time_samples = 100 # n_t
self.trajectory_variance = 0.05
self.totally_random = True # if True, target can be anywhere
# DMP
self.use_DMP = False
self.DMP_wn = 8.
self.DMP_xi = 1.5 # Magic!
# training properties
self.batch_size_train = 200 # n_batch
self.batch_size_test = 6
self.batches_train = 100
self.epochs = 1500
self.continue_training = True
self.save_interval = 10 # -1 for saving best model
self.display_interval = 1
# program properties
self.use_gpu = True
self.multi_threads = 32
self.log_path = "./assets/log"
self.check_point_path = "./assets/learned_model"
# self.experiment_name = "DMP_YCB_Ten_Point_Reacher_512_128_spatialsoftmax_random_aug"
self.experiment_name = "CMP_Toy_nofixmse"
# self.experiment_name = "EXP_CNN_DMP_YCB_100_new"
# self.experiment_name = "test"
self.gpu=0
if __name__ == '__main__':
pass