ultralytics 8.0.201 docs alt tags and fonts updates (#5886)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: Michael Currie <mcurrie@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
77fc5ccf02
commit
a05edfbc27
16 changed files with 22 additions and 21 deletions
|
|
@ -451,7 +451,7 @@ class LoadTensor:
|
|||
im = im.unsqueeze(0)
|
||||
if im.shape[2] % stride or im.shape[3] % stride:
|
||||
raise ValueError(s)
|
||||
if im.max() > 1.0:
|
||||
if im.max() > 1.0 + torch.finfo(im.dtype).eps: # torch.float32 eps is 1.2e-07
|
||||
LOGGER.warning(f'WARNING ⚠️ torch.Tensor inputs should be normalized 0.0-1.0 but max value is {im.max()}. '
|
||||
f'Dividing input by 255.')
|
||||
im = im.float() / 255.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue