Giter Site home page Giter Site logo

sophgo / tpu_compiler Goto Github PK

View Code? Open in Web Editor NEW
16.0 5.0 4.0 55.62 MB

cvitek ai compiler base on MLIR

Home Page: https://www.cvitek.com

License: Apache License 2.0

CMake 0.15% C++ 32.97% Shell 2.00% Dockerfile 0.01% MLIR 0.56% Python 14.59% Cuda 0.11% C 2.41% HTML 46.94% Roff 0.02% Makefile 0.01% Cython 0.07% MATLAB 0.18%
tpu compiler mlir

tpu_compiler's Introduction

tpu_compiler

本项目是晶视智能AI芯片的TPU编译器工程,目前已经支持晶视cv183x/cv182x/mars系列产品。

晶视智能是一家专注于视频监控及边缘计算技术研发的芯片设计公司,拥有自主研发的 AI TPU 运算核心及 SoC 芯片整合技术. 目前研发领域涵盖SoC芯片设计, AI TPU处理器及工具链,图像处理算法及设计等,致力于打造人工智能机器视觉一站式平台解决方案,为客户带来丰富价值及技术创新的产品与服务。公司在北京,深圳,武汉,香港等地设有研发中心和运营机构。更多信息参见官网CVITEK

本工程是基于MLIR架构开发,将TPU编译器分层设计,结构如下:

经过验证的网络列表

  • Classification: resnet50 resnet18 mobilenet_v1 mobilenet_v2 squeezenet_v1.1 shufflenet_v2 googlenet inception_v3 inception_v4 vgg16 densenet_121 densenet_201 senet_res50 resnext50 res2net50 ecanet50 efficientnet_b0 efficientnet_lite_b0 nasnet_mobile
  • Detection: retinaface_mnet25 retinaface_res50 ssd300 mobilenet_ssd yolo_v1 yolo_v2 yolo_v3 yolo_v4 yolo_v5 yolo_x
  • Misc: arcface_res50 alphapose espcn_3x unet erfnet

编译代码

  • 下载docker和建立容器

    docker pull cvitek/cvitek_dev:1.7-ubuntu-18.04
    cd tpu_compiler
    docker run -it --name work -v $PWD:/work  -v $PWD/../mlir-models:/models cvitek/cvitek_dev:1.7-ubuntu-18.04
  • 编译代码

    source ./envsetup.sh
    ./build.sh

代码验证

  • 算子验证

    mkdir tmp && cd tmp
    # 验证onnx算子
    test_onnx.py
    # 验证pytorch算子
    test_torch.py
  • 模型验证

    # 在tpu_compiler的同级
    cd regression
    ./run_regression.sh -n resnet50

使用方法

参见CVKTEK_TPU快速入门指南

tpu_compiler's People

Contributors

aartbik avatar andydavis1 avatar antiagainst avatar benvanik avatar bondhugula avatar chsigg avatar cvitek-mlir avatar dcaballe avatar denis0x0d avatar dimitriv avatar ftynse avatar gmngeoffrey avatar hongjunchu avatar hongjunchu-cvi avatar jingpu avatar joker-eph avatar jpienaar avatar kiszk avatar lattner avatar liufengdb avatar lucarfox avatar pifon2a avatar pkanwar23 avatar river707 avatar rsuderman avatar schweitzpgi avatar silvasean avatar smit-hinsu avatar tatianashp avatar thomasjoerg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  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.