tumourkit.segmentation.hovernet.run_infer
run_infer.py
- Usage:
run_infer.py [options] [–help] <command> [<args>…] run_infer.py –version run_infer.py (-h | –help)
- Options:
-h –help Show this string. –version Show version.
- --gpu=<id>
GPU list. [default: 0]
- --nr_types=<n>
Number of nuclei types to predict. [default: 0]
- --type_info_path=<path>
Path to a json define mapping between type id, type name, and expected overlaid color. [default: ‘’]
- --model_path=<path>
Path to saved checkpoint.
- --model_mode=<mode>
Original HoVer-Net or the reduced version used PanNuke and MoNuSAC, ‘original’ or ‘fast’. [default: fast]
- --shape=<shape>
Either 270 or 518.
- --nr_inference_workers=<n>
Number of workers during inference. [default: 8]
- --nr_post_proc_workers=<n>
Number of workers during post-processing. [default: 16]
- --batch_size=<n>
Batch size per 1 GPU. [default: 32]
- Two command mode are tile and wsi to enter corresponding inference mode
tile run the inference on tile wsi run the inference on wsi
Use run_infer.py <command> –help to show their options and usage.
Module attributes
Copyright (C) 2023 Jose Pérez Cano |
Functions