pytorch / pytorch/vision

torchvision mvit_v2_s export to onnx failed

Open
#7,003 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
17.9k
Forks
7.3k
Avg merge
1d 15h
Merged PRs (30d)
13

Description

🐛 Describe the bug
import torchvision
import torch.onnx

input_ = torch.randn(1, 3, 16, 224, 224, requires_grad=False)
model = torchvision.models.get_model('mvit_v2_s', weights="DEFAULT")
torch.onnx.export(model, input_, "alexnet.onnx", output_names=['output'])

Pragrame Terminated Unexpected (hang up in graph = _C._jit_pass_onnx(graph, operator_export_type))

Versions

version torch 1.13.0a0+d0d6b1f

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with torchvision.models.get_model('mvit_v2_s', weights="DEFAULT") and the provided input, then inspect the torch.onnx.export path around _C._jit_pass_onnx(graph, operator_export_type). Confirm that exporting this model completes without the process hanging and produces a usable ONNX file.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.