tumourkit.train_pipe.run_postproc_pipe
- tumourkit.train_pipe.run_postproc_pipe(args: Namespace, logger: Logger) None
Converts the json format to the graph format containing ground truth (GT) and predictions.
- This function performs the following steps:
Moves json files to their corresponding folders based on the split.
Converts the json format to geojson format.
Converts the geojson format to pngcsv format.
Converts the pngcsv format to nodes.csv format.
Extracts centroids from ground truth (GT) data.
Adds GT labels to the nodes.csv file.
Adds Hovernet predictions to the nodes.csv file.
- Parameters:
args (Namespace) – The arguments for the post-processing pipeline.
logger (Logger) – The logger object used for logging messages.