我正在尝试使用 Faster-RCNN 架构加载检查点并填充模型权重(Faster R-CNN ResNet50 V1 640x640
准确地说,从这里开始。我正在尝试为该网络加载权重,类似于在RetinaNet 的示例笔记本中完成的方式,他们请执行下列操作:
fake_box_predictor = tf.compat.v2.train.Checkpoint(
_base_tower_layers_for_heads=detection_model._box_predictor._base_tower_layers_for_heads,
_box_prediction_head=detection_model._box_predictor._box_prediction_head,
)
fake_model = tf.compat.v2.train.Checkpoint(
_feature_extractor=detection_model._feature_extractor,
_box_predictor=fake_box_predictor
)
ckpt = tf.compat.v2.train.Checkpoint(model=fake_model)
ckpt.restore(checkpoint_path).expect_partial()
我正在尝试为我想要使用的 Faster-RCNN 网络提供类似的检查点加载机制,但是_base_tower_layers_for_heads
像_box_prediction_head
我也找不到关于Checkpoint
为我的特定用例填充模型的哪些部分的文档。非常感谢有关如何解决此问题的任何帮助!