1 Star 0 Fork 0

sdboy/tensorrtx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

IBN-Net

An implementation of IBN-Net, proposed in "Two at Once: Enhancing Learning and Generalization Capacities via IBN-Net", ECCV2018 by Xingang Pan, Ping Luo, Jianping Shi, Xiaoou Tang.

For the Pytorch implementation, you can refer to IBN-Net

Features

  • InstanceNorm2d
  • bottleneck_ibn
  • Resnet50-IBNA
  • Resnet50-IBNB
  • Multi-thread inference

How to Run

    1. generate .wts

    // for ibn-a

    python gen_wts.py a
    

    a file 'resnet50-ibna.wts' will be generated.

    // for ibn-b

    python gen_wts.py b
    

    a file 'resnet50-ibnb.wts' will be generated.

    1. cmake and make
    mkdir build
    cd build
    cmake ..
    make
    
    1. build engine and run classification

    // put resnet50-ibna.wts/resnet50-ibnb.wts into tensorrtx/ibnnet

    // go to tensorrtx/ibnnet

    ./ibnnet -s  // serialize model to plan file
    ./ibnnet -d  // deserialize plan file and run inference
    
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/sdboy/tensorrtx.git
git@gitee.com:sdboy/tensorrtx.git
sdboy
tensorrtx
tensorrtx
master

搜索帮助