Skip to content

Files

Latest commit

397dc38 · Nov 29, 2022

History

History

inference

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 29, 2022
Nov 29, 2022
Nov 29, 2022
Nov 29, 2022
Nov 29, 2022
Nov 29, 2022
Nov 29, 2022
Nov 29, 2022

Inference Docker Build

After pipeline training, copy all branch checkpoints to ckpts folder, then modify line 144-149 of predict.py to select correct branch for each modality. The default settings of varaible model_dict is as follows:

    model_dict = {
        'bf': 'general.pt',  # brightfield branch
        'gs': 'grayscale.pt', # grayscale branch
        'fl': 'fl.pt',  # flourescence branch
        'omni': 'omnipose.pt' # omnipose model
    }

Then you can predict masks with the following command:

python predict.py -i "path_to_inputs"  -o "path_to_outputs"

If the program runs correctly, build and save docker image with following commands:

docker build -t name:tag .
docker save name:tag -o name.tar.gz