当前位置:网站首页>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-pythonyaml
pip install pyyamlkornia
pip install korniamatplotlib
pip install matplotlib2. 一些报错及其解决方法
(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()边栏推荐
- [MATLAB]图像处理——交通标志的识别
- 学生管理系统
- sql concat() function
- 二十二、Kotlin进阶学习:简单学习RecyclerView实现列表展示;
- 【OS】操作系统高频面试题英文版(1)
- "MySQL Advanced Chapter" four, the storage structure of the index
- Jackson 序列化失败问题-oracle数据返回类型找不到对应的Serializer
- 学生成绩管理系统(C语言版)
- MySQL 5.7 安装教程(全步骤、保姆级教程)
- A Spark task tuning 】 【 one day suddenly slow down how to solve
猜你喜欢
随机推荐
Usage of exists in sql
A Spark task tuning 】 【 one day suddenly slow down how to solve
Arthas command parsing (jvm/thread/stack/heapdump)
TDengineGUI无法连接TDengine
MYSQL一站式学习,看完即学完
卷积神经网络(CNN)之卷积操作、池化操作、激活函数
protobuf coding and network communication applications (1)
Mycat2.0搭建教程
MySQL - Function and Constraint Commands
Detailed introduction to the usage of Nacos configuration center
十三、Kotlin进阶学习:内联函数let、also、with、run、apply的用法。
六、Kotlin基础学习:函数
MySQL - Multi-table query and case detailed explanation
Flink CDC 实现Postgres到MySQL流式加工传输案例
Servlet basic principles and application of common API methods
[Ten years of network security engineers finishing] - 100 penetration testing tools introduction
十七、Kotlin进阶学习:1、守护线程;2、线程和协程之间的效率对比;3、取消协程;
C语言实战小项目(传统卡牌游戏)
Kotlin协程的简单用法:1、GlobalScope(不建议使用);2、lifecycleScope、viewModelScope(建议使用);
SQL Server安装教程
https://www.bilibili.com/video/BV1YF411L72F?share_source=copy_web&vd_source=7e63a4719cd8caa0c6c43bdcc04828df







