facebookresearch / facebookresearch/detectron2

Update our use of `torch.meshgrid` due to pytorch changes

Open
#3,786 7 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
34.7k
Forks
7.9k
PR merge metrics
No merged PRs in 30d

Description

Hi @ppwwyyxx ,

## Instructions To Reproduce the Issue:

I was able to install detectron2 in windows 10 and was also able to build and create exe (torchscript_mask_rcnn.exe) file.

The model.ts file was downloaded using the commands provided in 'https://github.com/facebookresearch/detectron2/tree/main/tools/deploy' . But when executing the exe file with downloaded models, it fails at step
```
// Run the network
auto output = module.forward({inputs});
```
without any error message. It gave below warning message.
```
[W ..\..\aten\src\ATen\native\TensorShape.cpp:2157] Warning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (function operator ())'
```
I tried for both 'scripting' and 'tracing'. Can you please advise. Thanks.

## Environment:

CUDA : 10.2
torch==1.10.0
torchvision==0.11.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.