Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SaimMomin12 committed Sep 18, 2024
1 parent 80709fa commit f1b0a60
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions tools/cellpose/cellpose.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,66 +76,66 @@
<param name="model_type" value="cyto"/>
<param name="chan" value="2"/>
<param name="chan2" value="3"/>
<output name="cp_mask" file="img02_cp_masks_cyto.tif" compare="image_diff" metric="mae" eps="0.01"/>
<output name="cp_segm" file="img02_cp_segm_cyto.png" compare="image_diff" metric="mae" eps="0.01"/>
<output name="cp_mask" file="img02_cp_masks_cyto.tif" compare="image_diff"/>
<output name="cp_segm" file="img02_cp_segm_cyto.png" compare="image_diff"/>
</test>
<test expect_num_outputs="2">
<param name="img_in" value="img02.png"/>
<param name="model_type" value="cyto2"/>
<param name="chan" value="2"/>
<param name="chan2" value="3"/>
<output name="cp_mask" file="img02_cp_masks_cyto2.tif" compare="image_diff" metric="mae" eps="0.01"/>
<output name="cp_segm" file="img02_cp_segm_cyto2.png" compare="image_diff" metric="mae" eps="0.01"/>
<output name="cp_mask" file="img02_cp_masks_cyto2.tif" compare="image_diff"/>
<output name="cp_segm" file="img02_cp_segm_cyto2.png" compare="image_diff"/>
</test>
<test expect_num_outputs="2">
<param name="img_in" value="img02.png"/>
<param name="model_type" value="cyto3"/>
<param name="chan" value="2"/>
<param name="chan2" value="3"/>
<output name="cp_mask" file="img02_cp_masks_cyto3.tif" compare="image_diff" metric="mae" eps="0.01"/>
<output name="cp_segm" file="img02_cp_segm_cyto3.png" compare="image_diff" metric="mae" eps="0.01"/>
<output name="cp_mask" file="img02_cp_masks_cyto3.tif" compare="image_diff"/>
<output name="cp_segm" file="img02_cp_segm_cyto3.png" compare="image_diff"/>
</test>
<test expect_num_outputs="2">
<param name="img_in" value="img02.png"/>
<param name="model_type" value="nuclei"/>
<param name="chan" value="2"/>
<param name="chan2" value="3"/>
<output name="cp_mask" file="img02_cp_masks_nuclei.tif" compare="image_diff" metric="mae" eps="0.01"/>
<output name="cp_segm" file="img02_cp_segm_nuclei.png" compare="image_diff" metric="mae" eps="0.01"/>
<output name="cp_mask" file="img02_cp_masks_nuclei.tif" compare="image_diff"/>
<output name="cp_segm" file="img02_cp_segm_nuclei.png" compare="image_diff"/>
</test>
<test expect_num_outputs="2">
<param name="img_in" value="img02.png"/>
<param name="model_type" value="cyto"/>
<param name="chan" value="2"/>
<param name="chan2" value="1"/>
<output name="cp_mask" file="img02_cp_masks_chan.tif" compare="image_diff" metric="mae" eps="0.01"/>
<output name="cp_segm" file="img02_cp_segm_chan.png" compare="image_diff" metric="mae" eps="0.01"/>
<output name="cp_mask" file="img02_cp_masks_chan.tif" compare="image_diff"/>
<output name="cp_segm" file="img02_cp_segm_chan.png" compare="image_diff"/>
</test>
<test expect_num_outputs="2">
<param name="img_in" value="img02.png"/>
<param name="model_type" value="cyto"/>
<param name="chan" value="2"/>
<param name="chan2" value="3"/>
<param name="diameter" value="50"/>
<output name="cp_mask" file="img02_cp_masks_diameter.tif" compare="image_diff" metric="mae" eps="0.01"/>
<output name="cp_segm" file="img02_cp_segm_diameter.png" compare="image_diff" metric="mae" eps="0.01"/>
<output name="cp_mask" file="img02_cp_masks_diameter.tif" compare="image_diff"/>
<output name="cp_segm" file="img02_cp_segm_diameter.png" compare="image_diff"/>
</test>
<test expect_num_outputs="2">
<param name="img_in" value="img02.png"/>
<param name="use_gpu" value="true"/>
<param name="model_type" value="cyto"/>
<param name="chan" value="2"/>
<param name="chan2" value="3"/>
<output name="cp_mask" file="img02_cp_masks_gpu.tif" compare="image_diff" metric="mae" eps="0.01"/>
<output name="cp_segm" file="img02_cp_segm_gpu.png" compare="image_diff" metric="mae" eps="0.01"/>
<output name="cp_mask" file="img02_cp_masks_gpu.tif" compare="image_diff"/>
<output name="cp_segm" file="img02_cp_segm_gpu.png" compare="image_diff"/>
</test>
<test expect_num_outputs="1">
<param name="img_in" value="img02.png"/>
<param name="model_type" value="cyto"/>
<param name="chan" value="2"/>
<param name="chan2" value="3"/>
<param name="show_segmentation" value="false"/>
<output name="cp_mask" file="img02_cp_masks_cyto.tif" compare="image_diff" metric="mae" eps="0.01"/>
<output name="cp_mask" file="img02_cp_masks_cyto.tif" compare="image_diff"/>
</test>
</tests>
<help>
Expand Down
Binary file modified tools/cellpose/test-data/img02_cp_masks_chan.tif
Binary file not shown.
Binary file modified tools/cellpose/test-data/img02_cp_masks_cyto.tif
Binary file not shown.
Binary file modified tools/cellpose/test-data/img02_cp_masks_cyto2.tif
Binary file not shown.
Binary file modified tools/cellpose/test-data/img02_cp_masks_diameter.tif
Binary file not shown.
Binary file modified tools/cellpose/test-data/img02_cp_masks_gpu.tif
Binary file not shown.
Binary file modified tools/cellpose/test-data/img02_cp_masks_nuclei.tif
Binary file not shown.
Binary file modified tools/cellpose/test-data/img02_cp_segm_chan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cellpose/test-data/img02_cp_segm_cyto.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cellpose/test-data/img02_cp_segm_cyto2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cellpose/test-data/img02_cp_segm_cyto3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cellpose/test-data/img02_cp_segm_diameter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cellpose/test-data/img02_cp_segm_gpu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tools/cellpose/test-data/img02_cp_segm_nuclei.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f1b0a60

Please sign in to comment.