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

Method get_net_out

tensorflow_agent/agent.py:212–223  ·  view source on GitHub ↗
(self, image)

Source from the content-addressed store, hash-verified

210 self.sess.close()
211
212 def get_net_out(self, image):
213 begin = time.time()
214 if self.use_frozen_net:
215 out_var = 'prefix/model/add_2'
216 else:
217 out_var = self.net.p
218 net_out = self.sess.run(out_var, feed_dict={
219 self.net_input_placeholder: image.reshape(1, *image.shape),})
220 # print(net_out)
221 end = time.time()
222 log.debug('inference time %s', end - begin)
223 return net_out
224
225 def preprocess_obz(self, obz):
226 for camera in obz['cameras']:

Callers 1

actMethod · 0.95

Calls 1

runMethod · 0.80

Tested by

no test coverage detected