当前位置:网站首页>Tensorflow and pytorch middle note feature map size adjustment to achieve up sampling
Tensorflow and pytorch middle note feature map size adjustment to achieve up sampling
2022-04-23 20:48:00 【NuerNuer】
1.tensorflow:
tf.image.resize_images(fea, size, method)
'''
fea: feature map
size: The goal is size, example :(300, 300)
method = 0 Bilinear interpolation
method = 1 Nearest neighbor law
method = 2 Bicubic interpolation
method = 3 Area interpolation
'''
Commonly used in , adjustment feature map The size of the , Further add convolution to adjust the number of channels to complete up sampling
2.torch:
torch.nn.functional.interpolate
(x,
size,
scale_factor,
mode="bilinear",
align_corners=True,
recompute_scale_factor=None
)
'''
x: feature map
size: The goal is size, example (128,128)
scale_factor: Multiple of change
mode: 'nearest','linear','bilinear','bicubic','trilinear','area'. Default :'nearest'
'''
This paper records Basic application mode , About align_corners and recompute_scale_factor For detailed explanation of parameters and some precautions, please refer to :https://blog.csdn.net/qq_50001789/article/details/120297401
Commonly used in , adjustment feature map The size of the , Further add convolution to adjust the number of channels to complete up sampling
Except for this On the sampling The way , The more common up sampling methods are deconvolution
tf2: layers.Conv2DTranspose()
torch: torch.nn.ConvTranspose2d()
版权声明
本文为[NuerNuer]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210545522452.html
边栏推荐
- Zhongchuang storage | how to choose a useful distributed storage cloud disk
- MySQL basic collection
- Elastic box model
- MySQL stored procedures and functions
- setInterval、setTimeout、requestAnimationFrame
- GSI-ECM工程建设管理数字化平台
- Fastdfs思维导图
- Easy to use nprogress progress bar
- 浅谈数据库设计之三大范式
- UnhandledPromiseRejectionwarning:CastError: Cast to ObjectId failed for value
猜你喜欢

Recommended usage scenarios and production tools for common 60 types of charts

Write table of MySQL Foundation (create table)

Mysql database common sense storage engine

go slice

Prim、Kruskal

浅谈数据库设计之三大范式

100天拿下11K,转岗测试的超全学习指南

A login and exit component based on token

vulnhub DC:1渗透笔记

Resolve the eslint warning -- ignore the warning that there is no space between the method name and ()
随机推荐
GSI-ECM工程建设管理数字化平台
Leetcode-279-complete square number
Commande dos pour la pénétration de l'Intranet
居家第二十三天的午饭
pytorch 1.7. The model saved by X training cannot be loaded in version 1.4 or earlier
Some grounded words
Google 尝试在 Chrome 中使用 Rust
Write table of MySQL Foundation (create table)
內網滲透之DOS命令
High paid programmer & interview question series 91 limit 20000 loading is very slow. How to solve it? How to locate slow SQL?
高薪程序员&面试题精讲系列91之Limit 20000加载很慢怎么解决?如何定位慢SQL?
On IRP from the perspective of source code
Resolve the error - error identifier 'attr_ id‘ is not in camel case camelcase
What about laptop Caton? Teach you to reinstall the system with one click to "revive" the computer
常用60类图表使用场景、制作工具推荐
MySQL基础之写表(创建表)
Bash script learning -- for loop traversal
Keywords static, extern + global and local variables
Summary and effect analysis of methods for calculating binocular parallax
PHP的Laravel与Composer部署项目时常见问题