Fix Python benchmark_app crash in case of binary input and batch > 1 (#15114)

This commit is contained in:
Ilya Naumov 2023-01-18 15:16:22 +03:00 committed by GitHub
parent 86d43a83ce
commit 32fce5cb40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,7 +105,7 @@ def get_input_data(paths_to_input, app_input_info):
f"provided data shapes. Only {binaries_to_be_used_map[info.name]} binaries will be processed for this input.") f"provided data shapes. Only {binaries_to_be_used_map[info.name]} binaries will be processed for this input.")
elif binaries_to_be_used_map[info.name] < total_frames: elif binaries_to_be_used_map[info.name] < total_frames:
logger.warning(f"Some binaries will be dublicated: {total_frames} is required, " logger.warning(f"Some binaries will be dublicated: {total_frames} is required, "
f"but only {images_to_be_used_map[info.name]} were provided.") f"but only {binaries_to_be_used_map[info.name]} were provided.")
else: else:
if not (info.is_image_info and len(image_sizes) == 1): if not (info.is_image_info and len(image_sizes) == 1):
logger.warning(f"No input files were given for input '{info.name}'!. This input will be filled with random values!") logger.warning(f"No input files were given for input '{info.name}'!. This input will be filled with random values!")