Skip to content

Commit 756ea30

Browse files
committed
Exit image generating plugin after extracting from zip
1 parent 9b4e1c9 commit 756ea30

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

external_plugins/image_generating_plugin/image_generating_plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def process_images(input_image_path, ground_truth):
187187
logger.info(f"The input image path specified by the user:{input_image_path}")
188188
if input_image_path.endswith(('.zip', '.rar')):
189189
extract_from_zipfile(input_image_path, ground_truth)
190+
return
190191
track_image_count = 0
191192
# NOTE: this just counts the total number of files (not including subdirectories) in the path; later, we check for the
192193
# file extension and only process supported types, so this could be an issue.

0 commit comments

Comments
 (0)