I'm probably missing something, but tiled_inference doesn't seem to be very stable when changing the tile size, which is visible as checkerboard artifacts. sen1floods11_v1.1/data/S1GRDHand/USA_348639_S1Hand.tif seems to work fine. However, when using another, larger (7845x4968), image, the output looks like:
(this is LULC computed from an S1GRD with crop=256, stride=192, batch_size=16 from the example notebook).
Bumping crop to 512 produces very different results:
Increasing stride to 284 brings back the checkerboard pattern:
Is there a way to get a stable inference over a larger image?
PS: I also tried to use tiled_inference over an entire GRD product and, while it was working fine in the beginning, the speed dropped to ~0 about halfway. It might be related to the memory usage, but to write out some of the data, I'd have to implement tiling myself anyway, so the question of how to pick the tile sizes and stride remains.
PPS: here's the class 1 probability for Santiago.tif, this time with the default crop and stride. The tiling artifacts are still visible.

I'm probably missing something, but
tiled_inferencedoesn't seem to be very stable when changing the tile size, which is visible as checkerboard artifacts.sen1floods11_v1.1/data/S1GRDHand/USA_348639_S1Hand.tifseems to work fine. However, when using another, larger (7845x4968), image, the output looks like:(this is LULC computed from an S1GRD with
crop=256, stride=192, batch_size=16from the example notebook).Bumping
cropto 512 produces very different results:Increasing
strideto 284 brings back the checkerboard pattern:Is there a way to get a stable inference over a larger image?
PS: I also tried to use
tiled_inferenceover an entire GRD product and, while it was working fine in the beginning, the speed dropped to ~0 about halfway. It might be related to the memory usage, but to write out some of the data, I'd have to implement tiling myself anyway, so the question of how to pick the tile sizes and stride remains.PPS: here's the class 1 probability for
Santiago.tif, this time with the defaultcropandstride. The tiling artifacts are still visible.