MCPcopy Create free account
hub / github.com/deepdrive/deepdrive / preprocess_obz

Method preprocess_obz

tensorflow_agent/agent.py:225–231  ·  view source on GitHub ↗
(self, obz)

Source from the content-addressed store, hash-verified

223 return net_out
224
225 def preprocess_obz(self, obz):
226 for camera in obz['cameras']:
227 image = camera['image']
228 image = image.astype(np.float32)
229 image -= c.MEAN_PIXEL
230 camera['image'] = image
231 return obz
232
233 def set_random_action_repeat_count(self):
234 if self.semirandom_sequence_step == (self.random_action_count + self.non_random_action_count):

Callers 1

actMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected