Open rajavishah opened 2 weeks ago
It is fixed by eliminating the analysis of files with filename _output
.
This behavior is also found whilst analyzing images via cellpose
algorithm. So, when files named with cp_masks
are passed to cellpose algorithm
, It doesn't even identify it as a input_image
. Following behavior was found when testing 2 files with cellpose algorithm
and threshold algorithm
.
Testing : threshold
after limiting _output
from processing [4 test cases]
Input: file_names —> hello.tif, xyz_output.tif
hello_output.tiff
. It didn't process anything on xyz_output.tiff
. Hence, returned 3 images. 2 original inputs and hello_output.tif
hello_output.tiff
. Worked as expectedhello_output.tiff
. original 2 images were also present in the folder [Validated with cellpose’s behavior]hello_output.tiff
. Input images were not present in the output folder [Validated with cellpose’s behavior]Testing : cellpose
with file_names that includes cp_masks
from processing [4 test cases]
Input: file_names —> hello.tif, xyz_cp_masks.tif
hello.tif
, xyz_cp_masks.tif
, hello_cp_masks.tif
, hello_seg.npy
. Hence, it didn't process anything on xyz_cp_masks.tiff
. Returned 4 files. 2 original and 2 extra outputs of hello.tif
hello_cp_masks.png
. Was expected. Also if you choose pretrained model as cyto2, get extra outputs such as flows, png, etc.xyz_cp_masks.tif
was not analyzed at all. there were n
different outputs from hello.tif
(depending on the parameters)hello.tif
(depending on the number of selected parameters).
Describe the bug
If the output and input folders are given same for
threshold X jupyter
then it reanalyzes the generated_output image again and produces outputs twice.Have you searched existing issues?
Reproduction
Run the
threshold_inference_jupyter_image
and keep the value of--save_dir
same as--folder
Screenshot
Logs/StackTrace
Bilayers Version
0.1
System Info
OS version: Mac OS 14.1