当前位置:网站首页>Self-augmented Unpaired Image Dehazing via Density and Depth Decomposition程序运行记录
Self-augmented Unpaired Image Dehazing via Density and Depth Decomposition程序运行记录
2022-07-30 05:44:00 【enen狂】
论文题目:
《Self-augmented Unpaired Image Dehazing via Density and Depth Decomposition》
作者列表:
杨洋(天津大学),王超岳(悉尼大学),刘日升(大连理工大学),张林(同济大学),郭晓杰(天津大学),陶大程(悉尼大学,京东探索研究院)
论文摘要:
为了克服在合成数据集上训练的去雾模型的过拟合问题,许多最近的方法试图使用非成对数据进行训练来提高模型的泛化能力。然而其中大多数方法仅仅简单地遵循CycleGAN的思路构建去雾循环和上雾循环,却忽略了现实世界中雾霾环境的物理特性,即雾霾对物体可见度的影响随深度和雾气密度而变化。在本文中,我们提出了一种自增强的图像去雾框架,称为D4(Dehazing via Decomposing transmission map into Density and Depth),用于图像去雾和雾气生成。我们所提出的框架并非简单地估计透射图或清晰图像,而是聚焦于探索有雾图像和清晰图像中的散射系数和深度信息。通过估计的场景深度,我们的方法能够重新渲染具有不同厚度雾气的有雾图像,并作为自数据增强机制提升去雾网络的性能。值得注意的是,整个训练过程仅依靠非成对的有雾图像和清晰图像,成功地从单个模糊图像中恢复了散射系数、深度图和清晰图像。综合实验表明,我们的方法在参数量和FLOPs更少的情况下去雾效果优于最先进的非成对去雾方法。
论文信息:
[1] Yang Yang, Chaoyue Wang, Risheng Liu, Lin Zhang, Xiaojie Guo, Dacheng Tao. Self-augmented Unpaired Image Dehazing via Density and Depth Decomposition. CVPR 2022.
论文链接:
https://www.aliyundrive.com/s/WqWvoBkrzBi
代码链接:
https://github.com/YaN9-Y/D4
相关讲解视频:
代码调试:
1. 需要的包
cv2
pip install opencv-python
yaml
pip install pyyaml
kornia
pip install kornia
matplotlib
pip install matplotlib
2. 一些报错及其解决方法
(1)yaml.load函数缺少Loader参数
将对应config.py文件中的对应行改为
self._dict = yaml.load(self._yaml, Loader=yaml.FullLoader)
(2)联网无响应
改为加载本地模型,src/block.py中57行
def _make_pretrained_efficientnet_lite3(use_pretrained, exportable=False):
#efficientnet = torch.hub.load(
# "rwightman/gen-efficientnet-pytorch",
# "tf_efficientnet_lite3",
# pretrained=use_pretrained,
# exportable=exportable,
# ) 需联网,故改成以下写法,加载本地文件即可
efficientnet = torch.hub.load(
"/home/yanhaorui/.cache/torch/hub/rwightman_gen-efficientnet-pytorch_master",
"tf_efficientnet_lite3",
pretrained=use_pretrained,
exportable=exportable,
source='local'
)
return _make_efficientnet_backbone(efficientnet)
3. kornia中方法有误
D4.py中对应行改为
depth = kornia.filters.median_blur(depth,(9,9))
4. save()参数问题
D4.py对应函数改为
def save(self, save_best=False, psnr=None, iteration=None):
self.model.save()
边栏推荐
- Jdbc & Mysql timeout分析
- 常用损失函数(二):Dice Loss
- Twenty-two, Kotlin advanced learning: simply learn RecyclerView to achieve list display;
- MySQL special statement and optimizer
- Arthas command parsing (jvm/thread/stack/heapdump)
- php vulnerability full solution
- TDengine集群搭建
- Nodejs PM2 monitoring and alarm email (2)
- 21. Kotlin Advanced Learning: Implementing Simple Network Access Encapsulation
- MySQL 数据类型及占用空间
猜你喜欢
Conda 安装 tensorflow gpu 1.13.1(验证可行)
《MySQL高级篇》四、索引的存储结构
TDengine集群搭建
Monstache执行Monstache - f配置。toml出错不存在处理器类型和名称(附件)(= parse_exc类型
Reasons and solutions for Invalid bound statement (not found)
Flink-stream/batch/OLAP integrated to get Flink engine
MySQL achievement method 】 【 5 words, single table SQL queries
为什么会出现梯度爆炸和梯度消失现象?怎么缓解这种现象的发生?
十五、Kotlin进阶学习:一、子类与子类型;二、协变;三、逆变;
八、Kotlin基础学习:1、数据类;2、单例;3、伴生对象;4、密封类;
随机推荐
Shardingsphere depots table and configuration example
Monstache执行monstache -f config.toml出错No processor type exists with name [attachment] [type=parse_exc
[MATLAB]图像处理——交通标志的识别
The types of data structures and MySQL index
C语言学习经验
"MySQL Advanced Chapter" four, the storage structure of the index
MySQL 数据类型及占用空间
Request请求体重新封装,解决请求体只能获取一次的问题
sqli-labs shooting range SQL injection learning Less-1
Thread state of five
学生成绩管理系统(C语言版)
Common exception analysis of Redis client
SQL Server安装教程
Extraction of BaseDAO
protobuf编码及网络通信应用(一)
十四、Kotlin进阶学习:一、内联函数 inline;二、泛型;三、泛型约束;四、子类与子类型;
Arthas command parsing (watch/tt/sc)
The first WebAssembly program
Flink CDC 实现Postgres到MySQL流式加工传输案例
[Ten years of network security engineers finishing] - 100 penetration testing tools introduction