GithubHelp home page GithubHelp logo

Comments (4)

CameronVetter avatar CameronVetter commented on June 15, 2024 1

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.

dkurt avatar dkurt commented on June 15, 2024

Hi! Can you please share a model so we can reproduce issue locally? Even with randomly initialized weights.

from openvino_contrib.

dkurt avatar dkurt commented on June 15, 2024

@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.

CameronVetter avatar CameronVetter commented on June 15, 2024

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)

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.