# HG changeset patch # User bgruening # Date 1744731560 0 # Node ID 37b9ead209da1cdd9db080e2d3fe102dd24e354a # Parent 2b61d8fcfa52956620267e63148f38280cf3e24e planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/bioimaging commit 399a62ba78a6a3d7885c7df03cc7de37e1a7ec6f diff -r 2b61d8fcfa52 -r 37b9ead209da bioimage_inference.xml --- a/bioimage_inference.xml Mon Apr 07 14:46:13 2025 +0000 +++ b/bioimage_inference.xml Tue Apr 15 15:39:20 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 2b61d8fcfa52 -r 37b9ead209da main.py --- a/main.py Mon Apr 07 14:46:13 2025 +0000 +++ b/main.py Tue Apr 15 15:39:20 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 2b61d8fcfa52 -r 37b9ead209da test-data/output_nucleisegboundarymodel.tiff Binary file test-data/output_nucleisegboundarymodel.tiff has changed