open-mmlab / mmfashion

Open-source toolbox for visual fashion analysis based on PyTorch
https://open-mmlab.github.io/
Apache License 2.0
1.27k stars 283 forks source link

can't try fashion_parsing_segmentation #112

Open AhmedNageh08 opened 3 years ago

AhmedNageh08 commented 3 years ago

i followed the instructions in readme here https://github.com/open-mmlab/mmfashion/tree/master/configs/fashion_parsing_segmentation And i run pip install -r requirements.txt before setup when try to run python /mmfashion/mmdetection/tools/demo.py i get this error Traceback (most recent call last): File "/content/mmfashion/mmdetection/tools/demo.py", line 3, in from mmdet.apis import inference_detector, init_detector, show_result File "/usr/local/lib/python3.6/dist-packages/mmdet/apis/init.py", line 1, in from .inference import (async_inference_detector, inference_detector, File "/usr/local/lib/python3.6/dist-packages/mmdet/apis/inference.py", line 7, in from mmcv.ops import RoIPool File "/usr/local/lib/python3.6/dist-packages/mmcv/ops/init.py", line 1, in from .bbox import bbox_overlaps File "/usr/local/lib/python3.6/dist-packages/mmcv/ops/bbox.py", line 3, in ext_module = ext_loader.load_ext('_ext', ['bbox_overlaps']) File "/usr/local/lib/python3.6/dist-packages/mmcv/utils/ext_loader.py", line 11, in load_ext ext = importlib.import_module('mmcv.' + name) File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ModuleNotFoundError: No module named 'mmcv._ext' anyhelp and thanks in advance

AhmedNageh08 commented 3 years ago

i tried mmcv_full and now i get this error Traceback (most recent call last): File "/content/mmfashion/mmdetection/tools/demo.py", line 3, in from mmdet.apis import inference_detector, init_detector, show_result File "/usr/local/lib/python3.6/dist-packages/mmdet/apis/init.py", line 1, in from .inference import (async_inference_detector, inference_detector, File "/usr/local/lib/python3.6/dist-packages/mmdet/apis/inference.py", line 7, in from mmcv.ops import RoIPool File "/usr/local/lib/python3.6/dist-packages/mmcv/ops/init.py", line 1, in from .bbox import bbox_overlaps File "/usr/local/lib/python3.6/dist-packages/mmcv/ops/bbox.py", line 3, in ext_module = ext_loader.load_ext('_ext', ['bbox_overlaps']) File "/usr/local/lib/python3.6/dist-packages/mmcv/utils/ext_loader.py", line 11, in load_ext ext = importlib.import_module('mmcv.' + name) File "/usr/lib/python3.6/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: /usr/local/lib/python3.6/dist-packages/mmcv/_ext.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN6caffe28TypeMeta21_typeMetaDataInstanceISt7complexIdEEEPKNS_6detail12TypeMetaDataEv

xiangyu-getklothed commented 3 years ago

I think it's because of the wrong mmcv version

I8Robot commented 3 years ago

I got the error "ModuleNotFoundError: No module named 'mmcv._ext' ", too. Have you solved this problem?

NaumanHSA commented 2 years ago

I got the error "ModuleNotFoundError: No module named 'mmcv._ext' ", too. Have you solved this problem?

You should try installing mmcv-full.

mariuswong commented 8 months ago

may i know if anyone get this executable ?

i am not sure where i can get the checkpoint 'checkpoint/resnet50.pth', which seems needed in 'mask_rcnn_r50_fpn_1x.py' as enclosed. hopes some suggestions. Many thanks.

model settings

model = dict( type='MaskRCNN', pretrained='checkpoint/resnet50.pth', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requires_grad=True), style='pytorch'),