Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 3, 2023
1 parent abf03ed commit 795ad7e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion dgmr/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ def __init__(
)

def forward(self, x) -> torch.Tensor:

if self.input_channels < self.output_channels:
sc = self.conv_1x1(x)
sc = torch.cat([x, sc], dim=1)
Expand Down
4 changes: 0 additions & 4 deletions tests/test_losses.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


def test_ssim_loss():

x = torch.rand((2, 3, 32, 32))
y = torch.rand((2, 3, 32, 32))

Expand All @@ -17,7 +16,6 @@ def test_ssim_loss():


def test_ms_ssim_loss():

x = torch.rand((2, 3, 256, 256))
y = torch.rand((2, 3, 256, 256))

Expand All @@ -30,7 +28,6 @@ def test_ms_ssim_loss():


def test_ssim_loss_dynamic():

x = torch.rand((2, 3, 256, 256))
y = torch.rand((2, 3, 256, 256))
curr_image = torch.rand((2, 3, 256, 256))
Expand All @@ -44,7 +41,6 @@ def test_ssim_loss_dynamic():


def test_tv_loss():

x = torch.ones((2, 3, 256, 256))
x[0, 0, 0, 0] = 2.5

Expand Down

0 comments on commit 795ad7e

Please sign in to comment.