π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
fix linter error
edgarriba20aea110a91e
diff --git a/torchgeometry/depth_warper.py b/torchgeometry/depth_warper.pyindex 458a97434..4b8076b95 100644--- a/torchgeometry/depth_warper.py+++ b/torchgeometry/depth_warper.py@@ -107,7 +107,6 @@ class DepthWarper(nn.Module):xv = torch.ger(ones_x, x).view(area)yv = torch.ger(y, ones_y).view(area)- #grid = [xv, yv, ones, inv_depth_ref.view(area)]grid = torch.stack([xv, yv, ones], 0)batch_size = inv_depth_ref.shape[0]grid = grid.unsqueeze(0).expand(batch_size, -1, -1)