プリンキピア

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

14.13. Image Classification (CIFAR-10) on Kaggle14.13 Kaggleでの画像分類(CIFAR-10)

So far, we have been using high-level APIs of deep learning frameworks to directly obtain image datasets in tensor format. However, custom image datasets often come in the form of image files. In this section, we will start from raw image files, and organize, read, then transform them into tensor format step by step.
英語のヒント
ここまでは、深層学習のフレームワークの高水準のAPIを使って、テンソル形式の画像データセットを直接得てきた。しかし、カスタムの画像データセットは、しばしば画像ファイルの形で提供される。この節では、生の画像ファイルから始めて、それらを整理し、読み、それからテンソル形式に一歩ずつ変換する。
We experimented with the CIFAR-10 dataset in Section 14.1, which is an important dataset in computer vision. In this section, we will apply the knowledge we learned in previous sections to practice the Kaggle competition of CIFAR-10 image classification. The web address of the competition is https://www.kaggle.com/c/cifar-10
英語のヒント
14.1節では、コンピュータビジョンの重要なデータセットであるCIFAR-10のデータセットで実験した。この節では、前の節で学んだ知識を当てはめて、CIFAR-10の画像分類のKaggleコンペティションを練習する。コンペティションのウェブアドレスはhttps://www.kaggle.com/c/cifar-10である。
Fig. 14.13.1 shows the information on the competition’s webpage. In order to submit the results, you need to register a Kaggle account.
英語のヒント
図14.13.1は、コンペティションのウェブページの情報を示している。結果を提出するには、Kaggleのアカウントを登録する必要がある。
Image omitted because its reuse rights could not be verified.権利の確認ができないため画像を割愛。
Fig. 14.13.1図14.13.1
CIFAR-10 image classification competition webpage information. The competition dataset can be obtained by clicking the “Data” tab.
英語のヒント
CIFAR-10の画像分類コンペティションのウェブページの情報。コンペティションのデータセットは、「Data」タブをクリックすると得られる。
import collections
import math
import os
import shutil
import pandas as pd
import torch
import torchvision
from torch import nn
from d2l import torch as d2l