Skip to content

Commit

Permalink
fix: edge case when saving predictions under Classification channel, …
Browse files Browse the repository at this point in the history
…without saving entropy.
  • Loading branch information
CharlesGaydon committed Feb 6, 2024
1 parent adadaf7 commit f728d98
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

### 3.7.1
- fix: edge case when saving predictions under Classification channel, without saving entropy.

## 3.7.0
- Update all versions of Pytorch, Pytorch Lightning, and Pytorch Geometric.
Changes are retrocompatible for models trained with older versions (with adjustment to the configuration file).
Expand Down
2 changes: 1 addition & 1 deletion myria3d/models/interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def load_full_las_for_update(self, src_las: str, epsg: str) -> np.ndarray:
# We do not reset the dims we create channel.
# Slight risk of interaction with previous values, but it is expected that all non-artefacts values are updated.

pipeline = get_pdal_reader(src_las, epsg)
pipeline = pdal.Pipeline() | get_pdal_reader(src_las, epsg)
for proba_channel_to_create in self.probas_to_save:
pipeline |= pdal.Filter.ferry(dimensions=f"=>{proba_channel_to_create}")
pipeline |= pdal.Filter.assign(value=f"{proba_channel_to_create}=0")
Expand Down
2 changes: 1 addition & 1 deletion package_metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__: "3.7.0"
__version__: "3.7.1"
__name__: "myria3d"
__url__: "https://github.com/IGNF/myria3d"
__description__: "Deep Learning for the Semantic Segmentation of Aerial Lidar Point Clouds"
Expand Down

0 comments on commit f728d98

Please sign in to comment.