Skip to Content
タイニーエムエル
book

タイニーエムエル

by Pete Warden, Daniel Situnayake
March 2025
Intermediate to advanced
504 pages
7h 53m
Japanese
O'Reilly Media, Inc.
Content preview from タイニーエムエル

第10章 人物検出 人物の検出モデルをトレーニングする

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

第9章では、画像中の人物を認識するための事前学習済みモデルをデプロイする方法を紹介したが、そのモデルがどこから来たものなのかは説明しなかった。もしあなたの製品が異なる要求を持っているなら、あなた自身のバージョンを訓練できるようにしたいだろう。

マシンを選ぶ

この画像モデルのトレーニングには、これまでの例よりも多くの計算能力が必要となるため、合理的な時間でトレーニングを完了させたい場合は、ハイエンドのグラフィック・プロセッシング・ユニット(GPU)を搭載したマシンを使用する必要がある。多くのトレーニングジョブを実行することが予想されない限り、特殊化マシンを購入するよりも、クラウドインスタンスをレンタルすることから始めることをお勧めする。残念ながら、前の章で小規模なモデル用に使ってきたGoogleの無料サービスColaboratoryは使えないので、マシンにアクセスするためにお金を払う必要がある。素晴らしいサービスプロバイダはたくさんあるが、ここではGoogle Cloud Platformを使うことを前提に説明する。Amazon Web Services (AWS)やMicrosoft Azureを使っている場合は、TensorFlowをサポートしており、トレーニングの手順は同じであるが、マシンのセットアップについてはチュートリアルに従う必要がある。

Google Cloud Platformインスタンスをセットアップする

Google Cloud PlatformからTensorFlowとNVIDIAドライバがプリインストールされた仮想マシンを借りることができ、JupyterノートブックのWebインタフェースもサポートされているので非常に便利だ。しかし、これをセットアップするルートは少し複雑だ。2019年9月現在、マシンを作成するために必要な手順は以下の通りだ:

  1. console.cloud.google.comにサインインする。まだGoogleアカウントを持っていない場合は作成する必要があり、作成したインスタンスに対する支払いを行うために課金をセットアップする必要がある。まだプロジェクトを持っていない場合は、作成する必要がある。

  2. 画面の左上隅にあるハンバーガー・メニュー(図10-1のように3本の横線がアイコンのメイン・メニュー)を開き、「Artificial Intelligence(人工知能)」セクションを発見するまで下にスクロールする。

  3. このセクションでは、図10-1に示すように、AIプラットフォーム→ノートブックを選択する。

    The AI Platform menu
    図10-1. AIプラットフォーム・メニュー
  4. 図10-2に示すように、Compute Engine APIを有効にするかどうかを尋ねるプロンプトが表示されるかもしれない。この手続きには数分かかることがある。

    The Compute Engine API
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

認定倫理的ハッカー(CEH)勉強ガイド

認定倫理的ハッカー(CEH)勉強ガイド

Matt Walker
実践者向けの説明可能なAI

実践者向けの説明可能なAI

Michael Munn, David Pitman
ソフトウェア工学の基礎

ソフトウェア工学の基礎

Nathaniel Schutta, Dan Vega
エッジのAI

エッジのAI

Daniel Situnayake, Jenny Plunkett

Publisher Resources

ISBN: 9798341627000