Git Product home page Git Product logo

ortho_retinanet's Introduction

Pytorch Retinanet for Ortho Image Detection

WIP

This repository mainly uses and expands pytorch-retinanet, and leverages nms_pytorch in NMS implementation.

dependency

numpy==0.15.0 (the conflict between scipy and numpy occured on numpy latest version(1.16.0)

ortho_retinanet's People

Contributors

tanimutomo avatar

Watchers

James Cloos avatar

Forkers

shu26

ortho_retinanet's Issues

全体的に不要な実装部分は削除し,ファイルを整理する

不便な箇所が多いので,整理したい.
現状でのタスクは以下.気づいたら追加していく.

  • 現状のコードで不要な箇所と必要な箇所,新たに追加すべき箇所をまとめる.
  • まず,ResNetの50以外のモデルのコードはいらない
  • modelのforwardの中に,nmsの計算が書かれているので,そこを分離する.
  • argpraseで渡されている引数諸々を,config distでparseする.

NMSをCPU availableなpythonのfunctionに書き換える

CUDA前提の.c fileで書かれているので,解読が難しいのと利便性的な面からpythonでのNMS functionに書き換えたい.nmsの計算に関しては,他の人のrepoにあるやつを転用する.(FAIRのFaster R-CNNの実装とか)
nmsを書き換えるに当たって2つのことをやる

  • まず,現状のコードのNMSのInputと,Outputの形を理解する.(そこまで大変じゃないと思われる)
  • 上のInputとOutputに適合するnmsおpython実装を探してくる,もしくはうまく合わせる.

datasetとdataloaderの構造を理解する

自作データセットでの学習のために,理解する.
ただ,ここで使用されているデータセットがcoco datasetで,pycocotoolsを使っているので,それにいい感じにラップされていて,pycocotoolsの実装をみないと理解できない可能性がある.
�結構だるかったら,データセット作成の時間との兼ね合いで,ある程度のところで妥協して,こちらが前処理に時間を割く(割きたくねー)

datapararellでGPU並列処理する

in docker containerで動かすには,--shm-sizeを指定しないといけないので,kronosのymlのファイルで,shm_sizeを指定できるように書き直す.

Memo

regressionの出力は,center x, yとw, h

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.