Coder Social home page Coder Social logo

6drepnet-onnx's Introduction

6DRepNet ONNX

공식 저자의 깃헙입니다. Official Repo 해당 깃헙의 코드를 기반으로 ONNX 컨버팅을 수행했습니다.

Update

  • 2022/10/12 : init

Dirs

    ├── README.md               
    ├── src
    │   ├── backbone             
    │   │   ├── repvgg.py        <- backbone network
    │   ├── utils.py             <- utils
    │   ├── model.py             <- 6drepnet network
    │   │
    │   ├── convert_onnx.py      <- convert to onnx
    │   └── demo.py              <- demo
    ├── models

Pre-train Models

ONNX 컨버팅 또는 DEMO 실행을 위해 pre-trained model을 다운로드해야 합니다. 다운받은 파일은 models 폴더에 적재해야합니다.

6DRepNet_300W_LP_BIWI.pth pre_train backbone 다운로드 링크
RepVGG-B1g2-train.pth pre_train 6drepnet 다운로드 링크
sixdrepnet.onnx onnx 6drepnet 다운로드 링크

Convert ONNX

torch 라이브러리가 필요합니다. --name을 통해 컨버팅 된 파일의 이름을 정의할 수 있습니다.

python3 convert_onnx.py --name want_to_use_name.onnx

DEMO

mediapipe, onnxruntime, opencv 라이브러리가 필요합니다.
--draw_bbox 1를 통해 bounding box를 시각화 할 수 있습니다.
--draw_cube 1를 통해 headpose cube box를 시각화 할 수 있습니다.
--draw_line 1를 통해 headpose line을 시각화 할 수 있습니다.

python3 demo.py --draw_bbox 1 --draw_line 1

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.