我已经学习了 CNN 模型(model.t7
),我想在另一个基于 Python 的深度学习框架(例如 TensorFlow)上使用该模型。
你能告诉我如何实现它吗?
谢谢。
最佳答案
那里有一些脚本/库。
在这里您可以找到概述:https://github.com/ysh329/deep-learning-model-convertor
根据您的情况,您需要转换:
- 从 Torch 到 pyTorch https://github.com/clcarwin/convert_torch_to_pytorch
- 从 pyTorch 到 Tensorflow(通过 Keras)https://github.com/nerox8664/pytorch2keras
但请提前阅读限制,因为并非所有操作都受支持。
关于python - 是否可以在 TensorFlow 上加载学习模型 (.t7)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48238656/