pegasiukas commited on
Commit
3c43fab
·
verified ·
1 Parent(s): 5672955

Detector and denoiser models!

Browse files
DenoiserModels/Denoiser.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d86133494ad8166a6d3441ed03e2c670317d84665936fe1b63ddb6dd444655dc
3
+ size 32320151
DenoiserModels/Denoiser.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de89d73bcfb6ea0325d4f17f49cf5ecd10cb9c486d884fe8375250f81689411d
3
+ size 8046884
DenoiserModels/model_summary.txt ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Model Summary
2
+ =============
3
+ Total parameters: 2,008,800 (2.009 M)
4
+ Trainable parameters: 2,008,800 (2.009 M)
5
+
6
+ Training Config:
7
+ {
8
+ "dataset_path": "c:\\Users\\admin\\Desktop\\denoiser\\dat\\train",
9
+ "eval_path": "c:\\Users\\admin\\Desktop\\denoiser\\dat\\val",
10
+ "output_dir": "runs\\bias_free",
11
+ "patch_size": 256,
12
+ "paired": true,
13
+ "clean_subdir": "good",
14
+ "noisy_subdir": "bad",
15
+ "train_noise_levels": [
16
+ 5.0,
17
+ 15.0,
18
+ 25.0,
19
+ 50.0
20
+ ],
21
+ "eval_noise_levels": [
22
+ 5.0,
23
+ 15.0,
24
+ 25.0,
25
+ 50.0,
26
+ 75.0
27
+ ],
28
+ "color_mode": "rgb",
29
+ "batch_size": 14,
30
+ "grad_accum": 1,
31
+ "num_epochs": 200,
32
+ "learning_rate": 0.0002,
33
+ "weight_decay": 1e-06,
34
+ "ema_decay": 0.999,
35
+ "warmup_steps": 200,
36
+ "ssim_weight": 0.15,
37
+ "gradient_weight": 0.05,
38
+ "spectral_weight": 0.1,
39
+ "residual_kernel_sizes": [
40
+ 3,
41
+ 5,
42
+ 7
43
+ ],
44
+ "residual_aug_prob": 0.5,
45
+ "visualize_samples_per_epoch": 2,
46
+ "num_workers": 4,
47
+ "device": "cuda",
48
+ "precision": "amp",
49
+ "log_interval": 25,
50
+ "sample_interval": 1,
51
+ "sample_step_interval": 1000,
52
+ "checkpoint_interval": 5,
53
+ "max_train_images": null,
54
+ "pin_memory": true,
55
+ "seed": 17,
56
+ "resume_checkpoint": "c:\\Users\\admin\\Desktop\\gdsfd\\runs\\bias_free\\checkpoint_epoch_0015.pt",
57
+ "hard_mining": true,
58
+ "hard_buffer_size": 512,
59
+ "hard_mining_topk": 4,
60
+ "hard_mining_interval": 10
61
+ }
62
+
63
+ Architecture:
64
+ BiasFreeResidualDenoiser(
65
+ (prior_extractor): ResidualPriorExtractor()
66
+ (entry): BiasFreeConv(13, 48, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
67
+ (encoder_stages): ModuleList(
68
+ (0): ResidualStage(
69
+ (blocks): ModuleList(
70
+ (0-1): 2 x GatedResidualBlock(
71
+ (norm): LayerNorm2d()
72
+ (local): DepthwiseSeparableConv(
73
+ (depth): BiasFreeConv(48, 48, kernel_size=(5, 5), stride=(1, 1), padding=(2, 2), groups=48, bias=False)
74
+ (point): BiasFreeConv(48, 96, kernel_size=(1, 1), stride=(1, 1), bias=False)
75
+ )
76
+ (activation): GELU(approximate='none')
77
+ (proj): BiasFreeConv(96, 48, kernel_size=(1, 1), stride=(1, 1), bias=False)
78
+ (gate): GlobalGating(
79
+ (proj): BiasFreeConv(48, 48, kernel_size=(1, 1), stride=(1, 1), bias=False)
80
+ )
81
+ )
82
+ )
83
+ )
84
+ (1): ResidualStage(
85
+ (blocks): ModuleList(
86
+ (0-1): 2 x GatedResidualBlock(
87
+ (norm): LayerNorm2d()
88
+ (local): DepthwiseSeparableConv(
89
+ (depth): BiasFreeConv(96, 96, kernel_size=(5, 5), stride=(1, 1), padding=(2, 2), groups=96, bias=False)
90
+ (point): BiasFreeConv(96, 192, kernel_size=(1, 1), stride=(1, 1), bias=False)
91
+ )
92
+ (activation): GELU(approximate='none')
93
+ (proj): BiasFreeConv(192, 96, kernel_size=(1, 1), stride=(1, 1), bias=False)
94
+ (gate): GlobalGating(
95
+ (proj): BiasFreeConv(96, 96, kernel_size=(1, 1), stride=(1, 1), bias=False)
96
+ )
97
+ )
98
+ )
99
+ )
100
+ (2): ResidualStage(
101
+ (blocks): ModuleList(
102
+ (0-1): 2 x GatedResidualBlock(
103
+ (norm): LayerNorm2d()
104
+ (local): DepthwiseSeparableConv(
105
+ (depth): BiasFreeConv(192, 192, kernel_size=(5, 5), stride=(1, 1), padding=(2, 2), groups=192, bias=False)
106
+ (point): BiasFreeConv(192, 384, kernel_size=(1, 1), stride=(1, 1), bias=False)
107
+ )
108
+ (activation): GELU(approximate='none')
109
+ (proj): BiasFreeConv(384, 192, kernel_size=(1, 1), stride=(1, 1), bias=False)
110
+ (gate): GlobalGating(
111
+ (proj): BiasFreeConv(192, 192, kernel_size=(1, 1), stride=(1, 1), bias=False)
112
+ )
113
+ )
114
+ )
115
+ )
116
+ )
117
+ (downs): ModuleList(
118
+ (0): BiasFreeConv(48, 96, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False)
119
+ (1): BiasFreeConv(96, 192, kernel_size=(3, 3), stride=(2, 2), padding=(1, 1), bias=False)
120
+ )
121
+ (bottleneck): ResidualStage(
122
+ (blocks): ModuleList(
123
+ (0-2): 3 x GatedResidualBlock(
124
+ (norm): LayerNorm2d()
125
+ (local): DepthwiseSeparableConv(
126
+ (depth): BiasFreeConv(192, 192, kernel_size=(5, 5), stride=(1, 1), padding=(2, 2), groups=192, bias=False)
127
+ (point): BiasFreeConv(192, 576, kernel_size=(1, 1), stride=(1, 1), bias=False)
128
+ )
129
+ (activation): GELU(approximate='none')
130
+ (proj): BiasFreeConv(576, 192, kernel_size=(1, 1), stride=(1, 1), bias=False)
131
+ (gate): GlobalGating(
132
+ (proj): BiasFreeConv(192, 192, kernel_size=(1, 1), stride=(1, 1), bias=False)
133
+ )
134
+ )
135
+ )
136
+ )
137
+ (up_projs): ModuleList(
138
+ (0): Sequential(
139
+ (0): Upsample(scale_factor=2.0, mode='bilinear')
140
+ (1): BiasFreeConv(192, 96, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
141
+ )
142
+ (1): Sequential(
143
+ (0): Upsample(scale_factor=2.0, mode='bilinear')
144
+ (1): BiasFreeConv(96, 48, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
145
+ )
146
+ )
147
+ (merge_convs): ModuleList(
148
+ (0): BiasFreeConv(192, 96, kernel_size=(1, 1), stride=(1, 1), bias=False)
149
+ (1): BiasFreeConv(96, 48, kernel_size=(1, 1), stride=(1, 1), bias=False)
150
+ )
151
+ (decoder_stages): ModuleList(
152
+ (0): ResidualStage(
153
+ (blocks): ModuleList(
154
+ (0-1): 2 x GatedResidualBlock(
155
+ (norm): LayerNorm2d()
156
+ (local): DepthwiseSeparableConv(
157
+ (depth): BiasFreeConv(96, 96, kernel_size=(5, 5), stride=(1, 1), padding=(2, 2), groups=96, bias=False)
158
+ (point): BiasFreeConv(96, 192, kernel_size=(1, 1), stride=(1, 1), bias=False)
159
+ )
160
+ (activation): GELU(approximate='none')
161
+ (proj): BiasFreeConv(192, 96, kernel_size=(1, 1), stride=(1, 1), bias=False)
162
+ (gate): GlobalGating(
163
+ (proj): BiasFreeConv(96, 96, kernel_size=(1, 1), stride=(1, 1), bias=False)
164
+ )
165
+ )
166
+ )
167
+ )
168
+ (1): ResidualStage(
169
+ (blocks): ModuleList(
170
+ (0-1): 2 x GatedResidualBlock(
171
+ (norm): LayerNorm2d()
172
+ (local): DepthwiseSeparableConv(
173
+ (depth): BiasFreeConv(48, 48, kernel_size=(5, 5), stride=(1, 1), padding=(2, 2), groups=48, bias=False)
174
+ (point): BiasFreeConv(48, 96, kernel_size=(1, 1), stride=(1, 1), bias=False)
175
+ )
176
+ (activation): GELU(approximate='none')
177
+ (proj): BiasFreeConv(96, 48, kernel_size=(1, 1), stride=(1, 1), bias=False)
178
+ (gate): GlobalGating(
179
+ (proj): BiasFreeConv(48, 48, kernel_size=(1, 1), stride=(1, 1), bias=False)
180
+ )
181
+ )
182
+ )
183
+ )
184
+ )
185
+ (exit): BiasFreeConv(48, 3, kernel_size=(3, 3), stride=(1, 1), padding=(1, 1), bias=False)
186
+ (conditioner): NoiseConditioner(
187
+ (encoder): Sequential(
188
+ (0): Linear(in_features=4, out_features=96, bias=True)
189
+ (1): GELU(approximate='none')
190
+ (2): Linear(in_features=96, out_features=96, bias=True)
191
+ (3): GELU(approximate='none')
192
+ )
193
+ (heads): ModuleList(
194
+ (0-1): 2 x Linear(in_features=96, out_features=96, bias=True)
195
+ (2): Linear(in_features=96, out_features=192, bias=True)
196
+ (3-4): 2 x Linear(in_features=96, out_features=384, bias=True)
197
+ (5): Linear(in_features=96, out_features=192, bias=True)
198
+ (6): Linear(in_features=96, out_features=96, bias=True)
199
+ )
200
+ )
201
+ )
DetectorModels/grdnet_v2.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f7cccbe4f9f70ba57ee3dde88247896b2fd8d7baa26150364b992eb798c2a93
3
+ size 528184663
DetectorModels/grdnet_v2.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eefecc38be536ee801d504c872c0c42e9c3ff6b3e72559aaff34f159e9060f04
3
+ size 176070024