changed the imgsize on warmup to meet the grayscale for prediction

single_channel
Clea Parcerisas 1 year ago
parent 833d864689
commit d221ace5a3

@ -445,7 +445,7 @@ class AutoBackend(nn.Module):
""" """
return torch.tensor(x).to(self.device) if isinstance(x, np.ndarray) else x return torch.tensor(x).to(self.device) if isinstance(x, np.ndarray) else x
def warmup(self, imgsz=(1, 3, 640, 640)): def warmup(self, imgsz=(1, 1, 640, 640)):
""" """
Warm up the model by running one forward pass with a dummy input. Warm up the model by running one forward pass with a dummy input.

Loading…
Cancel
Save