-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require keyword args for all architectures (#279)
* KWOnly for all except ATD * Better error message * ATD
- Loading branch information
1 parent
067df7b
commit a2e28a8
Showing
45 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -909,6 +909,7 @@ class ATD(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
img_size=64, | ||
patch_size=1, | ||
in_chans=3, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -748,6 +748,7 @@ class CRAFT(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
in_chans=3, | ||
# img_size=64, | ||
window_size=16, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ class SRVGGNetCompact(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
num_in_ch=3, | ||
num_out_ch=3, | ||
num_feat=64, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -920,6 +920,7 @@ class DAT(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
img_size=64, | ||
in_chans=3, | ||
embed_dim=180, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -461,6 +461,7 @@ class DCTLSA(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
in_nc=3, | ||
nf=55, | ||
num_modules=6, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -265,6 +265,7 @@ class DITN_Real(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
inp_channels=3, | ||
dim=60, | ||
ITL_blocks=4, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -688,6 +688,7 @@ class DRCT(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
img_size=64, | ||
patch_size=1, | ||
in_chans=3, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ class DRUNet(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
in_nc=1, | ||
out_nc=1, | ||
nc=[64, 128, 256, 512], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ class DnCNN(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
in_nc=1, | ||
out_nc=1, | ||
nc=64, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -411,6 +411,7 @@ class FBCNN(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
in_nc=3, | ||
out_nc=3, | ||
nc=[64, 128, 256, 512], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -275,6 +275,7 @@ class FFTformer(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
inp_channels=3, | ||
out_channels=3, | ||
dim=48, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -856,6 +856,7 @@ class HAT(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
img_size=64, | ||
patch_size=1, | ||
in_chans=3, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -223,6 +223,7 @@ class KBNet_l(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
inp_channels=3, | ||
out_channels=3, | ||
dim=48, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -205,6 +205,7 @@ class KBNet_s(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
img_channel=3, | ||
width=64, | ||
middle_blk_num=12, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -554,6 +554,7 @@ class MMRRDBNet_test(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
num_in_ch, | ||
num_out_ch, | ||
scale=4, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ class OmniSR(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
num_in_ch=3, | ||
num_out_ch=3, | ||
num_feat=64, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -814,6 +814,7 @@ class RGT(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
img_size=64, | ||
in_chans=3, | ||
embed_dim=180, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -674,6 +674,7 @@ class RestoreFormer(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
n_embed=1024, | ||
embed_dim=256, | ||
ch=64, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -330,6 +330,7 @@ class RetinexFormer(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
in_channels=3, | ||
out_channels=3, | ||
n_feat=40, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -279,6 +279,7 @@ class SCUNet(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
in_nc=3, | ||
config=[4, 4, 4, 4, 4, 4, 4], | ||
dim=64, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -908,6 +908,7 @@ class Swin2SR(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
img_size=64, | ||
patch_size=1, | ||
in_chans=3, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -816,6 +816,7 @@ class SwinIR(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
img_size=64, | ||
patch_size=1, | ||
in_chans=3, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -610,6 +610,7 @@ class CodeFormer(VQAutoEncoder): | |
|
||
def __init__( | ||
self, | ||
*, | ||
dim_embd=512, | ||
n_head=8, | ||
n_layers=9, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -171,6 +171,7 @@ class M3SNet(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
img_channel=3, | ||
width=32, | ||
middle_blk_num=1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -307,6 +307,7 @@ class MIRNet_v2(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
inp_channels=3, | ||
out_channels=3, | ||
n_feat=80, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -398,6 +398,7 @@ class MPRNet(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
in_c: int = 3, | ||
out_c: int = 3, | ||
n_feat: int = 40, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -222,6 +222,7 @@ class Restormer(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
inp_channels=3, | ||
out_channels=3, | ||
dim=48, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1024,6 +1024,7 @@ class SRFormer(nn.Module): | |
|
||
def __init__( | ||
self, | ||
*, | ||
img_size=64, | ||
patch_size=1, | ||
in_chans=3, | ||
|