Open lgvaz opened 3 years ago
@lgvaz Will look into it. In the meantime can you check this https://discuss.pytorch.org/t/torch-jit-trace-is-not-working-with-mask-rcnn/83244
Hi hi, any updates on this?
Looking in hindsight I should've written a message instead of just giving the thumbs up on your message, but yeah, that's exactly the problem I'm facing, and the solution described there (of wrapping the image in a list) does solve the issue.
Now, how can this be addressed with torchserve?
@lgvaz Please use eager mode deployment for now. Torchscript support for detectron models is coming as part of PyTorch 1.8 release next week
Torchscript support for detectron models
@chauhang just to be clear, I'm using torchvision and not detectron
What's the situation on this, did you try with recent versions of the toolkits @lgvaz ?
Context
Your Environment
Current behavior and steps to reproduce
I'm following the example on fasterrcnn with the only difference that I'm using a scripted model instead of eager mode, this is what I'm doing:
I create the
.mar
file:torch-model-archiver --model-name coco50 --version 1.0 --serialized-file scripted_fasterrcnn_resnet50_fpn.pt --handler object_detector
And start torchserve with:
torchserve --start --ncs --model-store model_store --models coco=coco50.mar
But when making a request in the exact same way as described in the tutorial, I get:
Complete stack trace