Skip to content

Commit

Permalink
start move over to previous engine generation code for upscale
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise committed Oct 27, 2024
1 parent 4bcca51 commit a694e44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/src/spandrel/architectures/SPAN/__arch/span.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,10 @@ def is_norm(self):
return self.no_norm is None

def forward(self, x):
dtype = x.dtype
device = x.device
if self.is_norm:
self.mean.to(device=device, dtype=dtype)
self.mean = self.mean.type_as(x)
x = (x - self.mean) * self.img_range

Expand Down

0 comments on commit a694e44

Please sign in to comment.