gizmo error
dpugniddd opened this issue · 0 comments
Hi,
I cannot find a solution to this problem (mac AMD RADEON PRO 580X - Nuke15.0v2) , when I use the gizmo it open up this error, any idea how to solve it?
ERROR: ViTMatte.Inference1: Exception caught processing model: The following operation failed in the TorchScript interpreter.
Traceback of TorchScript, serialized code (most recent call last):
File "code/torch.py", line 13, in forward
trimap = torch.slice(_1, 1, 3, 4, 1)
image_and_trimap = {"image": image, "trimap": trimap}
_2 = (self.model).forward(image_and_trimap, )
~~~~~~~~~~~~~~~~~~~ <--- HERE
_3 = torch.contiguous(_2["phas"], memory_format=0)
return _3
File "code/torch/modeling/meta_arch/vitmatte.py", line 16, in forward
_0 = (self).preprocess_inputs(batched_inputs, )
images, H, W, = _0
features = (self.backbone).forward(images, )
~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
outputs = (self.decoder).forward(features, images, )
_1 = torch.slice(outputs["phas"], 0, 0, 9223372036854775807, 1)
File "code/torch/modeling/backbone/vit.py", line 19, in forward
_2 = self.pretrain_use_cls_token
_3 = ((torch.size(x0))[1], (torch.size(x0))[2])
x1 = torch.add(x0, _0(_1, _2, _3, ), alpha=1)
~~ <--- HERE
_4 = self.blocks
_5 = getattr(_4, "0")
File "code/torch/modeling/backbone/utils.py", line 34, in get_abs_pos
if _3:
_5 = torch.reshape(abs_pos0, [1, size, size, -1])
new_abs_pos = _0(torch.permute(_5, [0, 3, 1, 2]), [h, w], None, "bicubic", False, None, )
~~ <--- HERE
_6 = torch.permute(new_abs_pos, [0, 2, 3, 1])
_4 = _6
File "code/torch/torch/nn/functional/___torch_mangle_36.py", line 236, in interpolate
_89 = scale_factor_list0[0]
_90 = scale_factor_list0[1]
_91 = torch.upsample_bicubic2d(input, output_size, align_corners10, _89, _90)
~~~~~~~~~~~~~~~~~~~~~~~~ <--- HERE
_87 = _91
else:Traceback of TorchScript, original code (most recent call last):
File "/mnt/c/1_projects/segment
Thank you for this gizmo.
Best,
Daniele