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:
parent
aecd17d455
commit
522f1937ed
16 changed files with 1121 additions and 115 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue