Giter Site home page Giter Site logo

torch_object_detection's Introduction

torch_object_detection

Pytorchで物体検出(SSD)

  • version
    • torch 1.13.0
    • torchvision 0.14.1

仮想環境

  • 仮想環境作成時の参考
    • python -m venv .venv
    • source env/Scripts/activate
    • pip install -r requirements.txt

実行スクリプト

  • train.py
    • train.sh

実行手順

  • data,weightがない場合

    • prior_preparation/make_folders_and_data_downloads.pyを実行しdataとweightを用意する
  • train.pyのエポック数を各マシンの性能に合わせて変更

    • cpuでは10エポックで約30時間かかる
    • gpuが使える場合、train.pyのL141, 181, 182のコメントアウトを解除する
    • gpuで50エポックにした場合、学習時間は約6時間程
  • train.sh実行(学習)

  • test.sh実行(推論)

    • test.pyのL45のロードモデルを今回実行したモデルに変更
      • train.shで実行した学習済みモデルはssd300_〇〇.pthでweightに出力される
  • test.shで実行すると、推論結果が出力される

    • 現状は、馬の推論のみしか出力されない(ssd300_10.pth)
    • このモデルを使えば全部の画像の学習結果が見れる(ssd300_mAP_77.43_v2.pth)

torch_object_detection's People

Contributors

hideto7007 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.