Comments (2)
@tyfkda さま
ありがとうございます。
ご指摘いただいた通りです。
plt.figure(figsize=(256/dpi,254/dpi),dpi=dpi)
を
plt.figure(figsize=(240/dpi,256/dpi),dpi=dpi)
に修正いたしました。
https://github.com/YutaroOgawa/pytorch_tutorials_jp/tree/main/notebook/4_RL
ですが、今回のコードでは、
class ResizeObservation(gym.ObservationWrapper):
が効いてしまっていて、取り出した画像をimshowした場合、強制的に元の正方形を維持してしまっている状態です。
また、修正を考えます。
非常に丁寧な点を教えていただき、誠にありがとうございます。
from pytorch_tutorials_jp.
@YutaroOgawa figsize
に与えるパラメータは(縦, 横)なんですね、
また指定するサイズが実際の画像サイズの比率とずれていても引き伸ばされるわけではないようですね。失礼いたしました。
from pytorch_tutorials_jp.
Related Issues (14)
- 1_7_visualizing_models_data_and_training_with_tensorboard_jp にて typo
- 1_2_autograd_tutorial_jp.ipynb HOT 3
- 誤字の報告 HOT 3
- typoなどのご報告 HOT 1
- type のご報告
- 3_2_char_rnn_classification_tutorial_jp.ipynb のタイトル
- 「強化学習を用いたマリオの訓練」の訓練後の動作 HOT 3
- 2_2_torchvision_finetuning_instance_segmentation_jp.ipynbについて
- typoのご報告
- ソースコメントの日本語訳が一部おかしい HOT 1
- 1_6_nn_tutorial_jp.ipynb にて回避策が有効でない HOT 1
- 1_6_nn_tutorial_jp.ipynb にて typo HOT 1
- 1_4_cifar10_tutorial_jp にて typo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch_tutorials_jp.