Added cast for midas.py call which was failing to recognize that int64 was a int.
This commit is contained in:
@@ -170,7 +170,8 @@ class Resize(object):
|
||||
|
||||
def __call__(self, x):
|
||||
width, height = self.get_size(*x.shape[-2:][::-1])
|
||||
return nn.functional.interpolate(x, (height, width), mode='bilinear', align_corners=True)
|
||||
# Casting Correction. int64 != int
|
||||
return nn.functional.interpolate(x, (int(height), int(width)), mode='bilinear', align_corners=True)
|
||||
|
||||
class PrepForMidas(object):
|
||||
def __init__(self, resize_mode="minimal", keep_aspect_ratio=True, img_size=384, do_resize=True):
|
||||
|
||||
Reference in New Issue
Block a user