mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 13:34:23 +08:00
Clarify triton server boolean value (#8532)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
3596a77a5a
commit
9c42596145
@ -543,6 +543,6 @@ class AutoBackend(nn.Module):
|
||||
from urllib.parse import urlsplit
|
||||
|
||||
url = urlsplit(p)
|
||||
triton = url.netloc and url.path and url.scheme in {"http", "grpc"}
|
||||
triton = bool(url.netloc) and bool(url.path) and url.scheme in {"http", "grpc"}
|
||||
|
||||
return types + [triton]
|
||||
|
Loading…
x
Reference in New Issue
Block a user