Spaces:
Sleeping
Sleeping
commit
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
|
2 |
# built-in
|
3 |
|
4 |
-
from collections import namedtuple
|
5 |
from inspect import signature
|
6 |
import os
|
7 |
import subprocess
|
@@ -180,7 +180,7 @@ def infer_params(state_dict: dict[str, torch.Tensor]) -> tuple[int, int, int, in
|
|
180 |
return in_nc, out_nc, nf, nb, scale # 3, 3, 64, 23, 4
|
181 |
|
182 |
# https://github.com/philz1337x/clarity-upscaler/blob/e0cd797198d1e0e745400c04d8d1b98ae508c73b/modules/images.py#L64
|
183 |
-
class Grid(
|
184 |
tiles: Tiles
|
185 |
tile_w: int
|
186 |
tile_h: int
|
|
|
1 |
|
2 |
# built-in
|
3 |
|
4 |
+
from collections import namedtuple
|
5 |
from inspect import signature
|
6 |
import os
|
7 |
import subprocess
|
|
|
180 |
return in_nc, out_nc, nf, nb, scale # 3, 3, 64, 23, 4
|
181 |
|
182 |
# https://github.com/philz1337x/clarity-upscaler/blob/e0cd797198d1e0e745400c04d8d1b98ae508c73b/modules/images.py#L64
|
183 |
+
class Grid(namedTuple):
|
184 |
tiles: Tiles
|
185 |
tile_w: int
|
186 |
tile_h: int
|