AlphaPose icon indicating copy to clipboard operation
AlphaPose copied to clipboard

cpu install on mac

Open juneleung opened this issue 2 years ago • 4 comments

I tried old version last year, it works with CUDA version. but when i wanna to tried it again on my mac but i always cant build sucessful. any guide for build on cpu on mac?

juneleung avatar Sep 18 '21 16:09 juneleung

I have delete the "ext_modoule = get_ext_modoule()" line in setup.py and set "force_compile = True" still get the error as: ImportError: cannot import name 'deform_conv_cuda'

juneleung avatar Sep 19 '21 02:09 juneleung

Hi, do you use models ended up with 'dcn' ?

Fang-Haoshu avatar Sep 19 '21 03:09 Fang-Haoshu

@Fang-Haoshu act not.

''' python scripts/demo_inference.py --cfg configs/coco/resnet/256x192_res50_lr1e-3_1x.yaml --checkpoint pretrained_models/fast_res50_256x192.pth --indir examples/demo/ --gpus -1 '''

juneleung avatar Sep 19 '21 04:09 juneleung

@juneleung you may comment or delete line2-7 in alphapose/models/init.py for these lines will use extension modules built by "ext_modoule = get_ext_modoule()", which you've deleted before

koalaaaaaaaaa avatar Nov 14 '21 06:11 koalaaaaaaaaa