Add https://www.reddit.com/r/Ultralytics/ badge (#13284)
* Refactor code for speed and clarity * Update README.zh-CN.md Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> --------- Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
1 parent
b40781b3e3
commit
c5ffbbf1c3
20 files changed
+164
-73
No files matched your search
@@ -91,6 +91,8 @@ MACOS = platform.system() == "Darwin" # macOS environment
|
||||
|
||||
|
||||
class iOSModel(torch.nn.Module):
|
||||
"""An iOS-compatible wrapper for YOLOv5 models that normalizes input images based on their dimensions."""
|
||||
|
||||
def __init__(self, model, im):
|
||||
"""
|
||||
Initializes an iOS compatible model with normalization based on image dimensions.
|
||||
|
||||
Reference in new issue
Block a user