Comments (4)
I'm unsure of the best way to share the model in a github issue, so I've uploaded it here: https://1drv.ms/u/s!AofkugmEOKADh_QZvQU0bWQm2kfOcQ?e=7GxEh9
This is the exact model I'm using to reproduce this locally.
from openvino_contrib.
Hi! Can you please share a model so we can reproduce issue locally? Even with randomly initialized weights.
from openvino_contrib.
@CameronVetter, Currently module does not support TorchScript models conversion, so can you please try this code?
import torch
import torchvision.models as models
model_jit = torch.jit.load('github356_model.pt', map_location=torch.device("cpu"))
model = models.detection.mask_rcnn.maskrcnn_resnet50_fpn(num_classes=2)
model.load_state_dict(model_jit.state_dict())
model.eval()
# Convert to OpenVINO IR
import mo_pytorch
mo_pytorch.convert(model, input_shape=[1, 3, 800, 800], model_name='Mask_RCNN',
scale=255,
reverse_input_channels=True)
I used PyTorch 1.9.1 and Torchvision 0.10.0
from openvino_contrib.
Thank you, that example worked well. I will just skip TorchScript in the future, I did not realize that was unsupported.
from openvino_contrib.
Related Issues (20)
- Model failed to load on ARM CPU HOT 2
- Migrate to 23.02.1 ARM Compute
- Can the java_api load onnx model directly? HOT 1
- Android model loading and inference example in java/kotlin? HOT 2
- The demo crashed on the most recent android studio HOT 4
- Java tests failed on macOS x86 HOT 7
- Tedious to build and test the demo apps seamlessly HOT 2
- Arm plugin build failed while cross compiling HOT 9
- Java API: Async requests using API 2.0
- Compile Error on Debug Build for Version 2021.4
- [Question] Moving rust_api into OpenVINO Contrib HOT 2
- [NVIDIA][Issue] ov_nvidia_unit_tests has 11 failed tests HOT 1
- Java tests failed on Linux HOT 1
- [NVIDIA][FEATURE REQUEST] Add openvino_nvidia in PyPI as official package from Intel
- Azure: Unsupported Python version for Windows
- 给个例子?
- nvidia_plugin 同步推理没有实现?只实现了异步推理?
- [Good First Issue]: [JAVA API] Async demo for Java API 2.0 HOT 20
- OpenVINO java version number is outdated HOT 4
- [JavaAPI] TBB libraries has .so name rather than .so.2 name
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 openvino_contrib.