我下载了3D图像分割的预训练模型。在文件中,我找到了model.ckpt,model.fzn.pb,model.trt.pb,model.cpkt.meta。
我可以将.pb文件读取为图形,但是如何从图形中构建模型?
我也尝试使用
tf.keras.models.load_model
但是出现此信息:
tensorflow: Saver not created because there are no variables in the graph to restore.
.ckpt文件提供了模型的权重,但是我认为我无法使用它来重建模型结构。
大多数解决方案似乎都需要了解培训过程或输入/输出信息。我如何在不知道这些文件的情况下读取文件?