Using default values: prob_thresh=0.65, nms_thresh=0.75.
2022-11-30 09:00:09.087056: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudnn.so.8'; dlerror: libcudnn.so.8: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /media/elie/2ToenPlus/miniconda3/envs/csbdeepstardist/lib/python3.8/site-packages/cv2/../../lib64:
2022-11-30 09:00:09.087079: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1850] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
2022-11-30 09:00:09.087358: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 AVX512F FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
%% Cell type:markdown id: tags:
## Call java and using bioformat to read vsi files.
%% Cell type:code id: tags:
``` python
def_init_logger():
"""This is so that Javabridge doesn't spill out a lot of DEBUG messages
## Main function: application of the Stardist model on each image of the vsi file, detection and classification of chromatophores, saving of results and creation of optional additional result files.
fileResults.write("Sequence;Image area;Number of Light chromatophores;Number of Dark chromatophores;Total area of Light chromatophores;Total area of Dark chromatophores;Average size of Light chromatophores;Average size of Dark chromatophores;Median size of Light chromatophores; Median size of Dark chromatophores;Standard deviation of the size of Light chromatophores;Standard deviation of the size of Dark chromatophores\n")
# path of image
fileEXT=pathFile+"/Process_"+number+".vsi"
# Bioformat reading
ImageVSI=bioformats.ImageReader(path=fileEXT)
# Get metadata of vsi file
metadata=get_metadata(fileEXT)
# Get number of images of vsi file
ifnumberstackisNone:
numberstack=metadata.image(0).Pixels.SizeT
ifstartisNone:
start=0
if"0"inOptionS:
# Criteria to create video capture *****************************************************************************************