Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ def main(_) -> None:
else:
logger.info("Zero predictions after threshold.")
continue
except (KeyError, IndexError, TypeError, ValueError) as e:
except (KeyError, IndexError, TypeError, ValueError):
logger.info("Failed to filter out predictions.")
logger.exception("Exception occured:", e)
logger.exception("Exception occurred.")

try:
# Convert bbox coordinates into normalized coordinates.
Expand Down Expand Up @@ -246,9 +246,9 @@ def main(_) -> None:
else:
logger.info("Zero predictions after processing.")
continue
except (KeyError, IndexError, TypeError, ValueError) as e:
except (KeyError, IndexError, TypeError, ValueError):
logger.info("Issue in post processing predictions results.")
logger.exception("Exception occured:", e)
logger.exception("Exception occurred.")

try:
if result["num_detections"][0]:
Expand All @@ -266,9 +266,9 @@ def main(_) -> None:
threshold=PREDICTION_THRESHOLD.value,
)
logger.info("Visualization saved.")
except (KeyError, IndexError, TypeError, ValueError) as e:
except (KeyError, IndexError, TypeError, ValueError):
logger.info("Issue in saving visualization of results.")
logger.exception("Exception occured:", e)
logger.exception("Exception occurred.")

try:
# Resize an image for object tracking..
Expand Down Expand Up @@ -393,7 +393,7 @@ def main(_) -> None:
except (KeyError, IndexError, TypeError, ValueError):
logger.info("Issue in cropping objects")
logger.info("Failed to crop objects.")
logger.exception("Exception occured:", e)
logger.exception("Exception occurred.")

if isinstance(agg_features, pd.DataFrame) and not agg_features.empty:
try:
Expand Down