# HG changeset patch # User bgruening # Date 1744731568 0 # Node ID d5233b9d32bbee728656d1f810b4fa976de57e74 # Parent 4fd6e8b051e98918113106fc535641204abe083d planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/bioimaging commit 399a62ba78a6a3d7885c7df03cc7de37e1a7ec6f diff -r 4fd6e8b051e9 -r d5233b9d32bb bioimage_inference.xml --- a/bioimage_inference.xml Mon Apr 07 14:46:24 2025 +0000 +++ b/bioimage_inference.xml Tue Apr 15 15:39:28 2025 +0000 @@ -2,7 +2,7 @@ with PyTorch 2.4.1 - 2 + 3 @@ -38,9 +38,8 @@ - - - + + @@ -53,11 +52,7 @@ - - - - - + @@ -69,11 +64,7 @@ - - - - - + diff -r 4fd6e8b051e9 -r d5233b9d32bb main.py --- a/main.py Mon Apr 07 14:46:24 2025 +0000 +++ b/main.py Tue Apr 15 15:39:28 2025 +0000 @@ -108,8 +108,9 @@ # check if image dimensions are reversed reversed_order = list(reversed(range(exp_test_data.dim()))) exp_test_data_T = exp_test_data.permute(*reversed_order) - if exp_test_data_T.shape == target_image_dim: + if exp_test_data_T.shape == target_image_dim and exp_test_data.shape != target_image_dim: exp_test_data = exp_test_data_T + # check if image dimensions are not equal to target image dimensions if exp_test_data.shape != target_image_dim: for i in range(len(target_image_dim) - exp_test_data.dim()): exp_test_data = exp_test_data.unsqueeze(i) diff -r 4fd6e8b051e9 -r d5233b9d32bb test-data/output_nucleisegboundarymodel.tiff Binary file test-data/output_nucleisegboundarymodel.tiff has changed