Write Strategy
Module containing different strategies for writing predictions.
WriteStrategy
Bases: Protocol
Protocol for write strategy classes.
write_batch(dirpath, predictions)
WriteStrategy subclasses must contain this function to write a batch.
Parameters:
-
dirpath(Path) –Path to directory to save predictions to.
-
predictions(list[ImageRegionData]) –Decollated predictions.