💡 [REQUEST] - Neural Style Transfer: use AvgPool2d
メンテナーはふだん 2 日以内に返信
@sekyondaMeta がすでに取り組んでいます。
2026年4月27日 から。
評価
この issue はまだ評価されていません。
説明
🚀 Describe the improvement or the new tutorial
Neural Style Transfer utilizes VGG network, which uses maximum pooling.
Although Original article suggests using average pooling instead for better results:
For image synthesis we found that replacing the maximum
pooling operation by average pooling yields slightly more
appealing results, which is why the images shown were generated with average pooling.
This is unsurprising, considering that max pooling may hide gradients of lower layers, while average pooling preserves them, so gradient descent for reconstructing image works better.
I confirm that it actually improves results.
Suggested changes
Replace that:
elif isinstance(layer, nn.MaxPool2d):
name = 'pool_{}'.format(i)
with that:
elif isinstance(layer, nn.MaxPool2d):
name = 'pool_{}'.format(i)
layer = nn.AvgPool2d(
kernel_size=layer.kernel_size,
stride=layer.stride,
padding=layer.padding,
ceil_mode=layer.ceil_mode)
Existing tutorials on this topic
https://docs.pytorch.org/tutorials/advanced/neural_style_tutorial.html
Additional context
No response
cc @albanD @jbschlosser
- 主要言語
- Python
- スター
- 9.4k
- フォーク
- 4.4k
- 平均マージ
- 3日 5時間
- マージ済み PR(30日)
- 4
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pytorch/tutorials のほかの issue
-
Feedback about Datasets & DataLoaders対応中かも @hippi345 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 2 日以内に返信
-
💡 [REQUEST] - Add model.eval() after loading the mdoel対応中かも @Justee21 が 26 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
[BUG] Captum tutorial fails when visualize_image_attr() receives None for original_image再び着手できるかも @shubhambhar007 が 32 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
pytorch/tutorials#3963 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
[BUG] - Incorrect ResNet18 preprocessing in Captum tutorial対応中かも @austxu が 85 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 2 日以内に返信
-
Feedback about What is torch.nn really?対応中かも @MichelleHan7 が 22 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
pytorch/tutorials の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
cellrishi-code/claude-skills-atlas#165 ·
メンテナーはふだん 1 日以内に返信
-
bug confirmed issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
open-webui/open-webui#32635 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Filters: ?field:ne=null matches NULL rows instead of non-NULL ones対応中かも @rshdhere が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Netflix/metaflow-service#504 ·
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
gke-labs/kube-agents#3394 ·
メンテナーはふだん 1 日以内に返信
-
A2A audit timestamps end in +00:00Z (invalid ISO 8601)対応中かも @O1sumitkumar が今日担当しました。 オープンbug good first issue help wanted python
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信