Skip to content

How can I convert tf(.pb) to pytorch? #940

@eric9687

Description

@eric9687

Platform (like ubuntu 16.04/win10): ubuntu 20.04

Python version: 3.7

Source framework with version (like Tensorflow 1.4.1 with GPU): tf 1.14,

Destination framework with version (like CNTK 2.3 with GPU): torch 1.12.1

Pre-trained model path (webpath or webdisk path):

Running scripts:

mmconvert --srcFramework tensorflow --inputWeight saved_model.pb --inputNetwork saved_model.pb --dstFramework pytorch --outputModel tf2torch_saved_model

my error
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9c in position 3: invalid start byte

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions