プリンキピア

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

14.14. Dog Breed Identification (ImageNet Dogs) on Kaggle14.14 Kaggleでの犬種識別(ImageNet Dogs)

In this section, we will practice the dog breed identification problem on Kaggle. The web address of this competition is https://www.kaggle.com/c/dog-breed-identification
英語のヒント
この節では、Kaggleで犬種識別の問題を練習する。このコンペティションのウェブアドレスはhttps://www.kaggle.com/c/dog-breed-identificationである。
In this competition, 120 different breeds of dogs will be recognized. In fact, the dataset for this competition is a subset of the ImageNet dataset. Unlike the images in the CIFAR-10 dataset in Section 14.13, the images in the ImageNet dataset are both higher and wider in varying dimensions. Fig. 14.14.1 shows the information on the competition’s webpage. You need a Kaggle account to submit your results.
英語のヒント
このコンペティションでは、120種類の犬種を認識する。実は、このコンペティションのデータセットはImageNetのデータセットの部分集合である。14.13節のCIFAR-10のデータセットの画像とは違って、ImageNetのデータセットの画像は、高さも幅も大きく、大きさもまちまちである。図14.14.1は、コンペティションのウェブページの情報を示している。結果を提出するには、Kaggleのアカウントが要る。
Image omitted because its reuse rights could not be verified.権利の確認ができないため画像を割愛。
Fig. 14.14.1図14.14.1
The dog breed identification competition website. The competition dataset can be obtained by clicking the “Data” tab.
英語のヒント
犬種識別コンペティションのウェブサイト。コンペティションのデータセットは、「Data」タブをクリックすると得られる。
import os
import torch
import torchvision
from torch import nn
from d2l import torch as d2l