Closed platvlad closed 3 years ago
Nope.
You try to use a script, designed to showcase the work of classification networks with standard ImageNet-1K pipeline, on a segmentation model.
@osmr Thank you for your reply.
I am modifying the script by deleting everything after running model on image data (starting from this line).
So I just load, crop and normalize the image and run model on it. I`m not trying to parse the model results as classification output, but still have this error.
In other words, I also have this error with the following code:
import torch
from pytorchcv.model_provider import get_model as ptcv_get_model
net = ptcv_get_model('icnet_resnetd50b_cityscapes', pretrained=True).eval().cuda()
x = torch.rand((1, 3, 224, 224), dtype=torch.float).cuda()
net(x)
@osmr Thank you! I have another error now, for which I opened a new issue #88.
Hi! I am trying to run demo script
examples/demo.py
on ICNet modelicnet_resnetd50b_cityscapes
for PyTorch:I am getting an error:
As I see in
InterpolationBlock
code,calc_out_size
returns a tuple of floats, since its elements are multiplied by floatself.scale_factor
, which is0.5
for some ICNet blocks. This cause tuple of floats to be provided to be provided into torchinterpolate
function here. My PyTorch version is 1.7.1.Is it a bug of ICNet for Pytorch implementation?