changed the imgsize on warmup to meet the grayscale for prediction

This commit is contained in:
Clea Parcerisas
2023-08-24 10:51:30 +02:00
parent 833d864689
commit d221ace5a3

View File

@ -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.