vitpose环境

install cuda 11.7 (compatible to torch 1.12.1)

https://developer.nvidia.com/cuda-11-7-1-download-archive?target_os=Linux&target_arch=x[…]ribution=Ubuntu&target_version=20.04&target_type=deb_local

rm -rf ~/anaconda3/envs/mmdemo

conda create --name mmdemo python=3.9 -y

conda activate mmdemo

2. install torch 1.12.1

https://pytorch.org/get-started/previous-versions/

conda install pytorch torchvision torchaudio cudatoolkit=11.6 -c pytorch -c conda-forge

3. mmcv (it takes long time)

(need to mmcv>=1.3.17, <=1.7.0.)

pip install mmcv-full==1.5.0 -f https://download.openmmlab.com/mmcv/dist/cu117/torch1.12.1/index.html

https://github.com/open-mmlab/mmcv

ViTPose

https://github.com/ViTAE-Transformer/ViTPose

git clone https://github.com/ViTAE-Transformer/ViTPose.git

cd ViTPose

pip install -v -e .

pip install timm==0.4.9 einops

mmdet 3rd party package install

pip install mmdet

https://github.com/open-mmlab/mmdetection/blob/master/docs/en/get_started.md/#Installation

pose inference with det

(in ViTPose )

python demo/top_down_video_demo_with_mmdet.py demo/mmdetection_cfg/retinanet_swin-t-p4-w7_fpn_2x_coco.py demo/mmdet_checkpoints/swin_t_p4_w7_naju_epoch_24.pth configs/inter/ViTPose_base_coco_256x192.py work_dirs/ViTPose_base_coco_256x192/best_AP_epoch_70.pth --video-path video/out_7.mp4 --out-video-root outputs (편집됨)

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值