[JIT] Not supported for maskrcnn_resnet50_fpn
See original GitHub issueI am trying to accelerate the maskrcnn_resnet50_fpn
pretrained model using JIT tracing provided by pytorch. It appears that some operations present in this model are not supported by pytorch JIT.
Are these models supposed to have JIT support officially? If not, would you be able to provide advice for a workaround?
To replicate, running:
import torch
import torchvision
model = torchvision.models.detection.maskrcnn_resnet50_fpn(pretrained=True)
model.eval()
traced_net = torch.jit.trace(model, torch.rand(1, 3,800, 800))
produces
RuntimeError: log2_vml_cpu not implemented for 'Long
Thank you.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:59 (27 by maintainers)
Top Results From Across the Web
Torch.jit.trace is not working with mask rcnn
maskrcnn_resnet50_fpn ? torch.jit.script and torch.jit.tarce are not working with this model. With torch.jit.script model = torch ...
Read more >[PyTorch] Failed to convert Mask R-CNN with batch size > 1
Recerntly I am working on some models from PyTorch implementation, so I use the Relay PyTorch frontend from_pytorch to convert the model.
Read more >I can't convert the pytorch maskrcnn_resnet50_fpn model ...
But The problem is not in some dependencies. The problen is that *.pt model doesn't load with module = torch::jit::load(_path); The program ...
Read more >PyTorch for Jetson - Jetson Nano - ...
_C import * ImportError: libnvToolsExt.so.1: cannot open shared object file: No such file or ... Yes I did the same thing to get...
Read more >hpa_fastrcnn
__init__() if not isinstance(min_size, (list, tuple)): min_size = (min_size,) ... it in-place # once torchscript supports dict comprehension # this can be ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@cted18 Yes i’ll be working on adding OrderedDict to support
fcn_resnet101
. I think together with op support added in https://github.com/pytorch/vision/pull/1267 it shouldn’t be too hard to support in script.@stereomatchingkiss ONNX and JIT support for Mask R-CNN in torchvision has been merged into master, and is available if you compile from source.