From d221ace5a333acfcbfb7c35fd286ba77b004c12d Mon Sep 17 00:00:00 2001 From: Clea Parcerisas Date: Thu, 24 Aug 2023 10:51:30 +0200 Subject: [PATCH] changed the imgsize on warmup to meet the grayscale for prediction --- ultralytics/nn/autobackend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ultralytics/nn/autobackend.py b/ultralytics/nn/autobackend.py index 93de16b..69315d5 100644 --- a/ultralytics/nn/autobackend.py +++ b/ultralytics/nn/autobackend.py @@ -445,7 +445,7 @@ class AutoBackend(nn.Module): """ 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.