プリンキピア

第14章コンピュータビジョン

14.11.3. Reading the Dataset14.11.3 データセットを読む

We read the semantic segmentation dataset as introduced in Section 14.9. The output image shape of random cropping is specified as 320×480: both the height and width are divisible by 32.
英語のヒント
14.9節で紹介したセマンティックセグメンテーションのデータセットを読む。ランダムな切り抜きの出力画像の形状は320×480と指定する。高さと幅はどちらも32で割り切れる。
batch_size, crop_size = 32, (320, 480)
train_iter, test_iter = d2l.load_data_voc(batch_size, crop_size)
read 1114 examples
read 1078 examples