Skip to content

Commit

Permalink
Remove concatenate as now the prediction is inserted into an array di…
Browse files Browse the repository at this point in the history
…rectly
  • Loading branch information
danifranco committed Mar 6, 2024
1 parent 79982d3 commit 20fc2f7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion biapy/engine/denoising.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ def process_sample(self, norm):
del self._X, p

# Reconstruct the predictions
pred = np.concatenate(pred)
if original_data_shape[1:-1] != self.cfg.DATA.PATCH_SIZE[:-1]:
if self.cfg.PROBLEM.NDIM == '3D': original_data_shape = original_data_shape[1:]
f_name = merge_data_with_overlap if self.cfg.PROBLEM.NDIM == '2D' else merge_3D_data_with_overlap
Expand Down
1 change: 0 additions & 1 deletion biapy/engine/image_to_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ def process_sample(self, norm):
del self._X, p

# Reconstruct the predictions
pred = np.concatenate(pred)
if original_data_shape[1:-1] != self.cfg.DATA.PATCH_SIZE[:-1]:
if self.cfg.PROBLEM.NDIM == '3D': original_data_shape = original_data_shape[1:]
f_name = merge_data_with_overlap if self.cfg.PROBLEM.NDIM == '2D' else merge_3D_data_with_overlap
Expand Down

0 comments on commit 20fc2f7

Please sign in to comment.