在TensorFlow2.0中使用SavedModels时,是否可以从中间层访问激活?例如,使用其中一个模型:,我可以运行,例如,
model = tf.saved_model.load('faster_rcnn_inception_v2_coco_2018_01_28/saved_model我希望能够访问输出层以外的其他层,但似乎没有任何Tensorflow 2.0的文档来说明如何做到这一点。下载的模型还包括检查点文件,但似乎也没有很好的文档来说明如何使用TensorFlow
我想这是因为我试图将TensorFlow层放入一个普通的列表中。 有没有人知道我如何解决这个问题,并能够创建一个图层列表?我不想使用Sequential,因为它不太灵活。在PyTorch中他们有ModuleLists,你可以用它来代替列表,在TensorFlow中有没有我可以使用的等价物? !pip install tensorflow-gpu==2.0.0-alpha0
import tensorflow as t
我对Tensorflow训练后量化过程感到困惑。官方网站提到了Tensorflow Lite量化。TFLiteConverter为我的Mask RCNN模型返回错误:
Some of the operators in the model are not supported by the standard TensorFlowLite runtime and are not recognized by TensorFlow.我对这些错误并不感到惊讶,因为不支持手机的decodejpeg可能是有意义的,然而,我希望我的模型由<