Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
MaskedDenoising_pytorch
Commits
6ba6ebb4
Commit
6ba6ebb4
authored
Nov 30, 2023
by
chenych
Browse files
update README and modift requirement.txt
parent
eb8957b2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
README.md
README.md
+6
-2
doc/progress.png
doc/progress.png
+0
-0
requirement.txt
requirement.txt
+2
-2
No files found.
README.md
View file @
6ba6ebb4
...
@@ -14,6 +14,10 @@
...
@@ -14,6 +14,10 @@
传统的去噪模型是靠识别噪声本身来起去噪作用的,而不是真正理解图像内容模型。本文的模型在特征提取之后,会对输入图像进行随机大比例遮盖(input mask),比如遮盖75%~85%的像素,迫使网络学习重构被遮盖的内容,增强对图像本身分布的建模能力。遮挡训练的方法可以使模型学习理解和重构图像的内容,而不仅仅依赖于噪声特征,从而获得更好的泛化能力。
传统的去噪模型是靠识别噪声本身来起去噪作用的,而不是真正理解图像内容模型。本文的模型在特征提取之后,会对输入图像进行随机大比例遮盖(input mask),比如遮盖75%~85%的像素,迫使网络学习重构被遮盖的内容,增强对图像本身分布的建模能力。遮挡训练的方法可以使模型学习理解和重构图像的内容,而不仅仅依赖于噪声特征,从而获得更好的泛化能力。
<div
align=
center
>
<img
src=
"./doc/progress.png"
/>
</div>
## 环境配置
## 环境配置
### Docker(方法一)
### Docker(方法一)
...
@@ -113,12 +117,12 @@ input mask: 设置 "if_mask"和"mask1", "mask2"(line 32-34), 制作比例将在m
...
@@ -113,12 +117,12 @@ input mask: 设置 "if_mask"和"mask1", "mask2"(line 32-34), 制作比例将在m
attention mask: 设置 "use_mask" 和 "mask_ratio1", "mask_ratio2" (line 68-70). attention mask ratio 可以是一个范围或者一个固定值。
attention mask: 设置 "use_mask" 和 "mask_ratio1", "mask_ratio2" (line 68-70). attention mask ratio 可以是一个范围或者一个固定值。
### 单机多卡
### 单机多卡
# 普通训练
###
# 普通训练
```
```
bash train.sh
bash train.sh
```
```
# 分布式训练
###
# 分布式训练
```
```
bash train_multi.sh
bash train_multi.sh
```
```
...
...
doc/progress.png
0 → 100644
View file @
6ba6ebb4
9.85 KB
requirement.txt
View file @
6ba6ebb4
opencv-python
opencv-python
==4.8.0.74
scikit-image
scikit-image
pillow
pillow
torchvision
torchvision
...
@@ -6,7 +6,7 @@ hdf5storage
...
@@ -6,7 +6,7 @@ hdf5storage
ninja
ninja
lmdb
lmdb
requests
requests
timm
s
timm
einops
einops
lpips
lpips
entmax
entmax
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment