Tensorflow 使用禁用的急切执行模式训练目标检测模型。(如何获得张量值)

Tensorflow 使用禁用的急切执行模式训练目标检测模型。(如何获得张量值),tensorflow,object-detection-api,Tensorflow,Object Detection Api,我正在使用tensorflow 2.5.0,并在不启用“急切执行”的情况下训练我的对象检测模型。当我使用model(image:Union[np.ndarray,tf.Tensor])将图像传递到模型时,我得到以下结果。如何得到这个张量的值?调用.numpy()无法获取值,这通常在启用“渴望”模式时会有所帮助 多谢各位 {'detection_scores': <tf.Tensor 'StatefulPartitionedCall:4' shape=(1, 30) dtype=float3

我正在使用tensorflow 2.5.0,并在不启用“急切执行”的情况下训练我的对象检测模型。当我使用model(image:Union[np.ndarray,tf.Tensor])将图像传递到模型时,我得到以下结果。如何得到这个张量的值?调用.numpy()无法获取值,这通常在启用“渴望”模式时会有所帮助

多谢各位

{'detection_scores': <tf.Tensor 'StatefulPartitionedCall:4' shape=(1, 30) dtype=float32>, 'detection_boxes': <tf.Tensor 'StatefulPartitionedCall:0' shape=(1, 30, 
4) dtype=float32>, 'num_detections': <tf.Tensor 'StatefulPartitionedCall:5' shape=(1,) dtype=float32>, 'detection_boxes_strided': <tf.Tensor 'StatefulPartitionedC
all:1' shape=(1, 30, 4) dtype=float32>, 'detection_classes': <tf.Tensor 'StatefulPartitionedCall:2' shape=(1, 30) dtype=float32>, 'detection_multiclass_scores': <
tf.Tensor 'StatefulPartitionedCall:3' shape=(1, 30, 24) dtype=float32>}
{'detection_scores':,'detection_box':,'num_detections':,'detection_box_stripped':,'detection_classes':,'detection_multi class_scores':<
tf.Tensor'StatefulPartitionedCall:3'形状=(1,30,24)dtype=float32>}
@张量流支护