ultralytics 8.1.44 add IS_RASPBERRYPI and constants refactor (#9827)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
3f34a7c3af
commit
7d891a4aa4
43 changed files with 146 additions and 141 deletions
|
|
@ -20,7 +20,7 @@ from .utils import polygons2masks, polygons2masks_overlap
|
|||
|
||||
DEFAULT_MEAN = (0.0, 0.0, 0.0)
|
||||
DEFAULT_STD = (1.0, 1.0, 1.0)
|
||||
DEFAULT_CROP_FTACTION = 1.0
|
||||
DEFAULT_CROP_FRACTION = 1.0
|
||||
|
||||
|
||||
# TODO: we might need a BaseTransform to make all these augments be compatible with both classification and semantic
|
||||
|
|
@ -1134,7 +1134,7 @@ def classify_transforms(
|
|||
mean=DEFAULT_MEAN,
|
||||
std=DEFAULT_STD,
|
||||
interpolation=Image.BILINEAR,
|
||||
crop_fraction: float = DEFAULT_CROP_FTACTION,
|
||||
crop_fraction: float = DEFAULT_CROP_FRACTION,
|
||||
):
|
||||
"""
|
||||
Classification transforms for evaluation/inference. Inspired by timm/data/transforms_factory.py.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue