我们如何将t7模型转换为keras’h5?我想为c3d-sports1m-kinetics.t7这样做,你可以在这里找到https://github.com/kenshohara/3D-ResNets/releases
我要求的最少是……
如此链接所述, https://github.com/pytorch/pytorch/issues/15307#issuecomment-448086741
同 torchfile 包,负载成功。你可以转储的内容 模型 到一个文件,然后了解内容。每个层信息都存储为字典。了解模型体系结构可以更容易地解析内容。
>>> import torchfile >>> model = torchfile.load('c3d-sports1m-kinetics.t7') >>> module = model.modules[0].modules[0] >>> module.name b'conv1a' >>> module['weight'].shape (64, 3, 3, 3, 3) >>> module['bias'].shape (64,)