第14章コンピュータビジョン
14.12.2. Reading the Content and Style Images14.12.2 コンテンツ画像とスタイル画像を読む
First, we read the content and style images. From their printed coordinate axes, we can tell that these images have different sizes.
英語のヒント
まず、コンテンツ画像とスタイル画像を読む。出力された座標軸から、これらの画像の大きさが違うことがわかる。
%matplotlib inline
import torch
import torchvision
from torch import nn
from d2l import torch as d2l
d2l.set_figsize()
content_img = d2l.Image.open('../img/rainier.jpg')
d2l.plt.imshow(content_img);style_img = d2l.Image.open('../img/autumn-oak.jpg')
d2l.plt.imshow(style_img);