Set task for Triton inferenceTriton (#18064)

This commit is contained in:
Laughing 2024-12-06 18:46:48 +08:00 committed by GitHub
parent a672bf79dd
commit f6005a9166
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -136,6 +136,7 @@ class Model(nn.Module):
# Check if Triton Server model # Check if Triton Server model
elif self.is_triton_model(model): elif self.is_triton_model(model):
self.model_name = self.model = model self.model_name = self.model = model
self.overrides["task"] = task or "detect" # set `task=detect` if not explicitly set
return return
# Load or create new YOLO model # Load or create new YOLO model