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
Hi! I am trying to run model inference on custom data, I was able to successfully create category space with corresponding .pth file, but when I tried running demo.py on my image I got the following error:
File "/workspaces/devit/my_demo.py", line 235, in main
output = model(batched_inputs)[0]
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 1194, in _call_impl
return forward_call(*input, **kwargs)
File "/devit/detectron2/modeling/meta_arch/devit.py", line 1168, in forward
other_classes = interpolate(other_classes, self.T, mode='linear') # (Nxclasses) x spatial x T
File "/devit/detectron2/modeling/meta_arch/devit.py", line 86, in interpolate
return F.interpolate(seq, T, mode=mode)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/functional.py", line 3945, in interpolate
return torch._C._nn.upsample_linear1d(input, output_size, align_corners, scale_factors)
RuntimeError: Input and output sizes should be greater than 0, but got input (W: 0) and output (W: 128)
Can it be because of the fact that I have only 1 class?
The text was updated successfully, but these errors were encountered:
Hi! I am trying to run model inference on custom data, I was able to successfully create category space with corresponding .pth file, but when I tried running
demo.py
on my image I got the following error:Can it be because of the fact that I have only 1 class?
The text was updated successfully, but these errors were encountered: