Giter Club home page Giter Club logo

Comments (5)

Kolkir avatar Kolkir commented on July 21, 2024

Could you please provide more details, normally files exported from pytorch can't be directly loaded to with C++ API. Please look at the StateLoader class, there are details how to export from python pytorch.

from mlcpp.

deism avatar deism commented on July 21, 2024

Thanks for replying.
The details as follows,

  1. I compiled mask_rcnn_pytorch in VS 2017 x64 on Pytorch 1.0.1 for windows downloaded from pytorch.org

  2. I download 3 pre-trained files from the addresses listed in readme(https://drive.google.com/file/d/1Y9Qq4u-DxiM_eYJ7w4-VXWp4XmUeoU3t/view?usp=sharing...)

  3. I failed to load the pre-trained files, because they were created by pytorch 1.0 preiview and pytorch 1.01 does not take them, Actually if there is "TORCH1" in the head of file, it will be rejected

  4. I tried to convert mask_rcnn_cocol.pth to C++ compatible in project https://github.com/multimodallearning/pytorch-mask-rcnn, with pytorch 1.01, unfortunately there is conflicts in model. The code as below,
    model.load_state_dict(torch.load(COCO_MODEL_PATH))
    example = torch.rand(1, 3, 224, 224)
    traced_script_module = torch.jit.trace(model, example)
    traced_script_module.save("D:/model.pt")

Any suggestions? thanks!

from mlcpp.

Kolkir avatar Kolkir commented on July 21, 2024

Please use this one https://github.com/mjstevens777/pytorch-mask-rcnn python implementation because original from multimodallearning is outdated.

from mlcpp.

deism avatar deism commented on July 21, 2024

Please check this guy's job at your convenience. https://github.com/darolt/mask_rcnn

from mlcpp.

Kolkir avatar Kolkir commented on July 21, 2024

I've update parameters file to be compatible with PyTorch v1.0.1.

from mlcpp.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.