Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DetectMultiBackend improvements #9269

Merged
merged 4 commits into from
Sep 3, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update common.py
Signed-off-by: Glenn Jocher <[email protected]>
  • Loading branch information
glenn-jocher committed Sep 3, 2022
commit 610bbeb2eabc2ab4318b5beea69e35d431ad7eee
2 changes: 1 addition & 1 deletion models/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ def forward(self, im, augment=False, visualize=False, val=False):
y = y[0]
if isinstance(y, np.ndarray):
y = torch.from_numpy(y).to(self.device)
return (y, []) if val else y
return y

def warmup(self, imgsz=(1, 3, 640, 640)):
# Warmup model by running inference once
Expand Down