def debug(self, processor):
# ????
train_class_labels, train_object_masks, train_nobject_masks, \
train_box_labels, train_box_masks = self.process_labels_cpu(processor.train_labels)
# ????
gpu_options = tf.GPUOptions(per_process_gpu_memory_fraction=0.25)
self.sess = tf.Session(config=tf.ConfigProto(gpu_options=gpu_options))
self.sess.run(tf.global_variables_initializer())
# ??
[temp] = self.sess.run(
fetches=[self.observe],
feed_dict={self.images: numpy.random.random(size=[128, 384, 384, 3]),
self.labels: numpy.random.randint(low=0, high=1, size=[128, 20, 5]),
self.keep_prob: 1.0})
print(temp.shape)
self.sess.close()
评论列表
文章目录