Comments (5)
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.
Thanks for replying.
The details as follows,
-
I compiled mask_rcnn_pytorch in VS 2017 x64 on Pytorch 1.0.1 for windows downloaded from pytorch.org
-
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...)
-
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
-
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.
Please use this one https://github.com/mjstevens777/pytorch-mask-rcnn python implementation because original from multimodallearning is outdated.
from mlcpp.
Please check this guy's job at your convenience. https://github.com/darolt/mask_rcnn
from mlcpp.
I've update parameters file to be compatible with PyTorch v1.0.1.
from mlcpp.
Related Issues (13)
- Error message after running demo HOT 2
- commit number of Pytorch you built from source HOT 4
- [Need Pytorch C++ API Usage Support] HOT 1
- CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: GOMP_LIBRARY HOT 1
- CMakeFiles/mask-rcnn_lib.dir/build.make:105: recipe for target 'CMakeFiles/mask-rcnn_lib.dir/maskrcnn.cpp.o' failed HOT 4
- Demo of MaskRCNN gpu memory HOT 1
- everything is good but segmentation fault after program exit HOT 4
- Plan to migrate to libtorch 1.2.0? HOT 1
- How to convert parameters from Mask R-CNN for C++ app HOT 1
- cannt open source file curl/curl.h HOT 1
- rpn and anchor generator seem error HOT 3
- Speed of Mask R-CNN During Inference HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlcpp.