Inference with SKOOTS#

Inference in the CLI#

SKOOTS can be used to segment on a new image using the command line interface. With an image in mind, and a pretrained model file, simply write into the command line:

skoots --pretrained_checkpoint "my_model.trch" --image "my_new_image.tiff"

This calls into skoots.__main__.py to parse arguments and ultimated, inference is performed by the eval() function in skoots.lib.eval.py.

Convert Outputs#

By default, SKOOTS will save all intermediary outputs (vectors and skeletons) as well as the segmentation mask in the zarr file format in the same location as the original image. To convert these files to a tiff, use the helper utility --convert to convert all files to tif in the folder.

skoots --convert *