Skip to content

Commit

Permalink
Update cli_tools.py
Browse files Browse the repository at this point in the history
  • Loading branch information
romeokienzler authored Jan 27, 2025
1 parent 65856ab commit 6bc6293
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion terratorch/cli_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ def write_on_batch_end(self, trainer, pl_module, prediction, batch_indices, batc
elif isinstance(prediction, tuple):
pred_batch, filename_batch = prediction
for prediction, file_name in zip(torch.unbind(pred_batch, dim=0), filename_batch, strict=False):
print(prediction, file_name, output_dir, trainer.out_dtype)
save_prediction(prediction, file_name, output_dir, dtype=trainer.out_dtype)
else:
raise TypeError(f"Unknown type for prediction{type(prediction)}")
Expand Down

0 comments on commit 6bc6293

Please sign in to comment.