Skip to content

Commit

Permalink
Refactor error handling in SegmentationCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
valhassan committed Nov 27, 2024
1 parent a207b3f commit e764b6b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions geo_deep_learning/tools/callbacks/segmentation_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,4 @@ def _log_visualizations(self, trainer, batch_idx):
artifact_file = artifact_file,
run_id=trainer.logger.run_id)
except Exception as e:
print(f"Error in logging visualizations: {e}")

finally:
self.current_batch = None
self.current_outputs = None
print(f"Error in logging visualizations: {e}")

0 comments on commit e764b6b

Please sign in to comment.