示例#1
0
    def __init__(self, hyperparams):
        config = copy.deepcopy(COST_SUM)
        config.update(hyperparams)
        Cost.__init__(self, config)

        self._costs = []
        self._weights = self._hyperparams['weights']

        for cost in self._hyperparams['costs']:
            self._costs.append(cost['type'](cost))
示例#2
0
文件: cost_sum.py 项目: Etragas/gps
    def __init__(self, hyperparams):
        config = copy.deepcopy(COST_SUM)
        config.update(hyperparams)
        Cost.__init__(self, config)

        self._costs = []
        self._weights = self._hyperparams['weights']

        for cost in self._hyperparams['costs']:
            self._costs.append(cost['type'](cost))
示例#3
0
	def __init__(self, hyperparams):
		config = copy.deepcopy(COST_IOC_QUADRATIC) # Set this up in the config?
		config.update(hyperparams)
		Cost.__init__(self, config)

		self._dO = self._hyperparams['dO']
		self._T = self._hyperparams['T']

		# By default using caffe
		if self._hyperparams['use_gpu']:
			caffe.set_device(self._hyperparams['gpu_id'])
			caffe.set_mode_gpu()
		else:
			caffe.set_mode_cpu()

		self.demo_batch_size = self._hyperparams['demo_batch_size']
		self.sample_batch_size = self._hyperparams['sample_batch_size']
		self.caffe_iter = 0

		self._init_solver()
示例#4
0
	def __init__(self, hyperparams):
		config = copy.deepcopy(COST_IOC_NN) # Set this up in the config?
		config.update(hyperparams)
		Cost.__init__(self, config)

		self._dO = self._hyperparams['dO']
		self._T = self._hyperparams['T']

		# By default using caffe
		if self._hyperparams['use_gpu']:
			caffe.set_device(self._hyperparams['gpu_id'])
			caffe.set_mode_gpu()
		else:
			caffe.set_mode_cpu()

		self.demo_batch_size = self._hyperparams['demo_batch_size']
		self.sample_batch_size = self._hyperparams['sample_batch_size']
		self.caffe_iter = 0

		self._init_solver()
 def __init__(self, hyperparams):
     config = copy.deepcopy(COST_LIN_WP)
     config.update(hyperparams)
     Cost.__init__(self, config)
示例#6
0
文件: cost_state.py 项目: Etragas/gps
 def __init__(self, hyperparams):
     config = copy.deepcopy(COST_STATE)
     config.update(hyperparams)
     Cost.__init__(self, config)
 def __init__(self, hyperparams):
     config = copy.deepcopy(COST_BINARY_REGION)
     config.update(hyperparams)
     Cost.__init__(self, config)
示例#8
0
 def __init__(self, hyperparams):
     config = copy.deepcopy(COST_COLLISION)
     config.update(hyperparams)
     Cost.__init__(self, config)
示例#9
0
 def __init__(self, hyperparams):
     # config = copy.deepcopy()
     # config.update(hyperparams)
     Cost.__init__(self, None)