You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this simple piece of code to try out the model
pretrained_model = model_zoo.get('COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml', trained=True)
# for p in pretrained_model.parameters():
# input(p.shape)
im = Image.open('input.jpg')
t = transforms.ToTensor()
pretrained_model.eval()
with torch.no_grad():
im = t(im)
output = pretrained_model([{'image':im, 'height':480, 'width':640}])
print(output)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am using this simple piece of code to try out the model
However the output I get is
What may be causing this behaviour? The input image is the one from the colab tutorial notebook so the model should be able to perform on it.
Beta Was this translation helpful? Give feedback.
All reactions