From 605e1ab933672deabe3f874cada623c1d669120f Mon Sep 17 00:00:00 2001 From: Michael Schmidt Date: Sat, 18 Nov 2023 11:30:18 +0100 Subject: [PATCH] Remove size requirements for FBCNN --- src/spandrel/architectures/FBCNN/__init__.py | 2 -- tests/images/inputs/8x8.png | Bin 0 -> 183 bytes tests/images/outputs/8x8/fbcnn_color.png | Bin 0 -> 268 bytes tests/test_FBCNN.py | 2 +- tests/util.py | 1 + 5 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 tests/images/inputs/8x8.png create mode 100644 tests/images/outputs/8x8/fbcnn_color.png diff --git a/src/spandrel/architectures/FBCNN/__init__.py b/src/spandrel/architectures/FBCNN/__init__.py index 044c8e97..1ed53276 100644 --- a/src/spandrel/architectures/FBCNN/__init__.py +++ b/src/spandrel/architectures/FBCNN/__init__.py @@ -1,6 +1,5 @@ from ...__helpers.model_descriptor import ( RestorationModelDescriptor, - SizeRequirements, StateDict, ) from .arch.FBCNN import FBCNN @@ -47,5 +46,4 @@ def load(state_dict: StateDict) -> RestorationModelDescriptor[FBCNN]: supports_bfloat16=True, # TODO input_channels=in_nc, output_channels=out_nc, - size_requirements=SizeRequirements(minimum=16), # TODO ) diff --git a/tests/images/inputs/8x8.png b/tests/images/inputs/8x8.png new file mode 100644 index 0000000000000000000000000000000000000000..d45e67e886070820eae94d4e84337c50ca33cc73 GIT binary patch literal 183 zcmeAS@N?(olHy`uVBq!ia0vp^93afX3?$7I7w-U4jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij?1AIbUHMf2HkTmIyLzSYUqLgyoSBCJlBH`;bn}mQ0I14-?iy0XB4ude` z@%$AjKtXL!7sn8Z%gGH4j*e_>ZjO$OY-)*#ifpcef{JWQ9S$=o(cMC;cj?%eYW2Jrm{-5e{}6C44ve8nc=*dqAtw5y*qT2a8Ju|r&A$N~ld z%1eGV3=!q}_p7+MOb)?nk? SlEa(;0000 tuple[int, int, int]: class TestImage(Enum): + SR_8 = "8x8.png" SR_16 = "16x16.png" SR_32 = "32x32.png" SR_64 = "64x64.png"