ImportError: cannot import name 'deform_conv_cuda' from partially initialized module 'alphapose.models.layers.dcn' (most likely due to a circular import) (z:\alphapose-master\alphapose\models\layers\dcn\__init__.py) #1126
PS Z:\AlphaPose-master> python scripts/demo_inference.py --cfg configs/halpe_coco_wholebody_136/resnet/256x192_res50_lr1e-3_2x-dcn-combined.yaml --checkpoint pretrained_models/multi_domain_fast50_dcn_combined_256x192.pth --indir exa
mples/demo/ --save_img
Traceback (most recent call last):
File "scripts/demo_inference.py", line 180, in
pose_model = builder.build_sppe(cfg.MODEL, preset_cfg=cfg.DATA_PRESET)
File "z:\alphapose-master\alphapose\models\builder.py", line 27, in build_sppe
return build(cfg, SPPE, default_args=default_args)
File "z:\alphapose-master\alphapose\models\builder.py", line 18, in build
return build_from_cfg(cfg, registry, default_args)
File "z:\alphapose-master\alphapose\utils\registry.py", line 75, in build_from_cfg
return obj_cls(**args)
File "z:\alphapose-master\alphapose\models\fastpose.py", line 26, in init
self.preact = SEResnet(
File "z:\alphapose-master\alphapose\models\layers\SE_Resnet.py", line 174, in init
self.layer2 = self.make_layer(
File "z:\alphapose-master\alphapose\models\layers\SE_Resnet.py", line 204, in make_layer
layers.append(block(self.inplanes, planes,
File "z:\alphapose-master\alphapose\models\layers\SE_Resnet.py", line 79, in init
from .dcn import DeformConv, ModulatedDeformConv
File "z:\alphapose-master\alphapose\models\layers\dcn__init.py", line 1, in
from .deform_conv import (DeformConv, DeformConvPack, ModulatedDeformConv,
File "z:\alphapose-master\alphapose\models\layers\dcn\deform_conv.py", line 9, in
from . import deform_conv_cuda
ImportError: cannot import name 'deform_conv_cuda' from partially initialized module 'alphapose.models.layers.dcn' (most likely due to a circular import) (z:\alphapose-master\alphapose\models\layers\dcn\init__.py)
Loading YOLO model..
PS Z:\AlphaPose-master> python scripts/demo_inference.py --cfg configs/halpe_coco_wholebody_136/resnet/256x192_res50_lr1e-3_2x-dcn-combined.yaml --checkpoint pretrained_models/multi_domain_fast50_dcn_combined_256x192.pth --indir exa mples/demo/ --save_img Traceback (most recent call last): File "scripts/demo_inference.py", line 180, in
pose_model = builder.build_sppe(cfg.MODEL, preset_cfg=cfg.DATA_PRESET)
File "z:\alphapose-master\alphapose\models\builder.py", line 27, in build_sppe
return build(cfg, SPPE, default_args=default_args)
File "z:\alphapose-master\alphapose\models\builder.py", line 18, in build
return build_from_cfg(cfg, registry, default_args)
File "z:\alphapose-master\alphapose\utils\registry.py", line 75, in build_from_cfg
return obj_cls(**args)
File "z:\alphapose-master\alphapose\models\fastpose.py", line 26, in init
self.preact = SEResnet(
File "z:\alphapose-master\alphapose\models\layers\SE_Resnet.py", line 174, in init
self.layer2 = self.make_layer(
File "z:\alphapose-master\alphapose\models\layers\SE_Resnet.py", line 204, in make_layer
layers.append(block(self.inplanes, planes,
File "z:\alphapose-master\alphapose\models\layers\SE_Resnet.py", line 79, in init
from .dcn import DeformConv, ModulatedDeformConv
File "z:\alphapose-master\alphapose\models\layers\dcn__init.py", line 1, in
from .deform_conv import (DeformConv, DeformConvPack, ModulatedDeformConv,
File "z:\alphapose-master\alphapose\models\layers\dcn\deform_conv.py", line 9, in
from . import deform_conv_cuda
ImportError: cannot import name 'deform_conv_cuda' from partially initialized module 'alphapose.models.layers.dcn' (most likely due to a circular import) (z:\alphapose-master\alphapose\models\layers\dcn\ init__.py)
Loading YOLO model..