VisCy
VisCy copied to clipboard
VS predictions should output the correct voxel_size/scale
One inconvenient step in the mantis analysis pipeline is having to go and remember to change the scale metadata on the virtually stained predictions. Is it possible to write the input dataset's scale as the output scale?
It could be done. The reason why it was omitted is that the prediction writer is currently written as a subclass of the lightning.pytorch.callbacks.BasePredictionWriter callback. This means that all the information it receives at runtime comes from the batch. So the scale information would have to be packed into the batch data, which introduces a small GPU syncing overhead.
Fixed in #89 and #93.