Centernet DCN编译error

I got pose estimation working for pytorch 1.1.0 and wrote some of my steps, See if this applies to your use case.

environment.txt

Conda env

The working conda env is in the environment.txt file. Rename it to .yml if you want to install it with conda.

Get the code

First you'll want to do

git clone https://github.com/xingyizhou/CenterNet

We'll call the resulting folder CNROOT.

Next, go to the $CNROOT/src/lib/models/networks dir and delete the DCNv2 directory.

Stay in the $CNROOT/src/lib/models/networks and do

git clone https://github.com/CharlesShang/DCNv2

Folow the set up for that repo (run make.sh, etc.)

Go into $CNROOT/src/lib/models/networks/pose_dla_dcn.py and comment out lines 313 and 314 - these won't be missed:

if pretrained:
model.load_pretrained_model(data='imagenet', name='dla34', hash='ba72cf86')

Go into $CNROOT/src/lib/opts.py and in line 323 set
opt.flip_idx = False

Go back to the CNROOT and download this model into the models dir (create it if it doesn't exist)

Try to run the demo as described.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值