Scipy connected components image. import torch import torch.