1adrianb / 1adrianb/human-pose-estimation
what is the principle of the deconvolution with bilinear interpolation kernel?
- 主要言語
- Lua
- スター
- 109
- フォーク
- 41
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
The code that I find in a website,but i dont know the principle。the code use this bilinear interpolation kernel to deconvolute。
code:
def bilinear_kernel(in_channels, out_channels, kernel_size):
"""Define a bilinear kernel according to in channels and out channels.
Returns:
return a bilinear filter tensor
"""
factor = (kernel_size + 1) // 2 #
if kernel_size % 2 == 1:
center = factor - 1
else:
center = factor - 0.5
og = np.ogrid[:kernel_size, :kernel_size]
bilinear_filter = (1 - abs(og[0] - center) / factor) * (1 - abs(og[1] - center) / factor)
weight = np.zeros((in_channels, out_channels, kernel_size, kernel_size), dtype=np.float32)
weight[range(in_channels), range(out_channels), :, :] = bilinear_filter
return torch.from_numpy(weight)
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
The issue asks for the principle behind using a bilinear interpolation kernel for deconvolution. The provided code defines a bilinear_kernel function in Python with PyTorch. To understand the principle, start by reading about transposed convolutions (deconvolutions) in deep learning and how bilinear interpolation is used for upsampling. Look at the repository's codebase to see where this kernel is applied, possibly in upsampling layers of the pose estimation model. Check related papers or documentation on convolutional part heatmap regression to see the context. The goal is to explain the mathematical and practical reasoning, not to modify code.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python, pytorch
- 領域
- computer-vision, machine-learning
- issue の種類
- ドキュメント
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 30/100