ImageNet names, classify inference, resume fixes (#712)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Laughing <61612323+Laughing-q@users.noreply.github.com>
This commit is contained in:
Glenn Jocher 2023-01-30 22:34:28 +01:00 committed by GitHub
parent aecd17d455
commit 522f1937ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 1121 additions and 115 deletions

View file

@ -162,7 +162,7 @@ def load_inference_source(source=None, transforms=None, imgsz=640, vid_stride=1,
"""
# source
source, webcam, screenshot, from_img, in_memory = check_source(source)
source_type = SourceTypes(webcam, screenshot, from_img) if not in_memory else source.source_type
source_type = source.source_type if in_memory else SourceTypes(webcam, screenshot, from_img)
# Dataloader
if in_memory: