Check for broken links (#1422)

Co-authored-by: Joris LIMONIER <joris.limonier@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Glenn Jocher
2023-03-14 16:12:33 +01:00
committed by GitHub
parent 9e58c32c15
commit 30fc4b537f
18 changed files with 77 additions and 35 deletions

View File

@ -153,7 +153,7 @@ def check_source(source):
elif isinstance(source, torch.Tensor):
tensor = True
else:
raise TypeError('Unsupported image type. See docs for supported types https://docs.ultralytics.com/predict')
raise TypeError('Unsupported image type. For supported types see https://docs.ultralytics.com/modes/predict')
return source, webcam, screenshot, from_img, in_memory, tensor

View File

@ -359,7 +359,7 @@ def autocast_list(source):
files.append(im)
else:
raise TypeError(f'type {type(im).__name__} is not a supported Ultralytics prediction source type. \n'
f'See https://docs.ultralytics.com/predict for supported source types.')
f'See https://docs.ultralytics.com/modes/predict for supported source types.')
return files