Skip to content

Commit

Permalink
perf: exit on error during predict
Browse files Browse the repository at this point in the history
  • Loading branch information
danellecline committed Sep 19, 2024
1 parent a232fd6 commit b747deb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aipipeline/prediction/vss_predict_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def process_image_batch(batch, config_dict):
num_loaded += 1
else:
logger.error(f"Error loading label {best_pred} to {database_id} {response.status_code} {response.text}")
exit(1)

return num_loaded

Expand Down

0 comments on commit b747deb

Please sign in to comment.