You are working on the kornia/kornia repository. The source code is checked out at /testbed at commit…
You are working on the kornia/kornia repository. The source code is checked out at /testbed at commit…: a task in SWE-Lego-RL-2699 (Harbor dataset). The connected component algorithm used starts by placing unique values for every pixel in the foreground (with torch.arange) and zeroing out the…
The task
The connected component algorithm used starts by placing unique values for every pixel in the foreground (with torch.arange) and zeroing out the background with a mask. The value of the first pixel is 0 (from the arange-function) by default which is confused for background in the spacial case above. The proposed…
Part of Lego-X/Lego-RL-2699.