Images with a side length larger than maxImageSize will be downscaled before analysing.
This is useful to reduce memory usage and processing time for large images.
Set to -1 to disable downscaling.
patchSize
patchSize:number
Patch size should be approx. 512-768. It governs the trade-off between speed and memory usage.
Smaller patch sizes use less memory but take longer. Defaults to 512.
Images with a side length larger than maxImageSize will be downscaled before analysing. This is useful to reduce memory usage and processing time for large images. Set to -1 to disable downscaling.