IGNF / myria3d

Myria3D: Aerial Lidar HD Semantic Segmentation with Deep Learning
https://ignf.github.io/myria3d/
BSD 3-Clause "New" or "Revised" License
151 stars 20 forks source link

Log confusion matrices after each epoch #111

Closed CharlesGaydon closed 5 months ago

CharlesGaydon commented 5 months ago

image

Mixing the two logging methods by calling self.log("val", self.metric) in {training|validation|test}step method and then calling self.log("val", self.metric.compute()) in the corresponding on{train|validation|test}_epoch_end method. Because the object is logged in the first case, Lightning will reset the metric before calling the second line leading to errors or nonsense results.