I'm trying to test the model and then use it for inference. I'm recieveing this error. I've tried mutliple version fo python with no success - pytohn 2.7, 3.5, 3.6 and 3.7
3.6.9 (default, Jul 3 2019, 15:36:16) [GCC 5.4.0 20160609] Traceback (most recent call last): File "upsnet/upsnet_end2end_test.py", line 44, in <module> from upsnet.dataset import * File "upsnet/../upsnet/dataset/__init__.py", line 1, in <module> from .cityscapes import Cityscapes File "upsnet/../upsnet/dataset/cityscapes.py", line 32, in <module> from upsnet.dataset.json_dataset import JsonDataset, extend_with_flipped_entries, filter_for_training, add_bbox_regression_targets File "upsnet/../upsnet/dataset/json_dataset.py", line 53, in <module> import upsnet.bbox.bbox_transform as box_utils File "upsnet/../upsnet/bbox/bbox_transform.py", line 15, in <module> from .bbox import bbox_overlaps as bbox_overlaps_cython ImportError: upsnet/../upsnet/bbox/bbox.so: undefined symbol: _Py_ZeroStruct
Please try to rebuild all cython modules manually and make sure the python version matches the version you wish to run inference (i.e., use python3.6 setup.py build_ext --inplace)
Hi
I'm trying to test the model and then use it for inference. I'm recieveing this error. I've tried mutliple version fo python with no success - pytohn 2.7, 3.5, 3.6 and 3.7
Ubuntu 16.04 Python 3.6 Cuda 10.1
python3.6 upsnet/upsnet_end2end_test.py --cfg upsnet/experiments/upsnet_resnet101_cityscapes_w_coco_16gpu.yaml --weight_path ./model/upsnet_resnet_101_cityscapes_w_coco_3000.pth
3.6.9 (default, Jul 3 2019, 15:36:16) [GCC 5.4.0 20160609] Traceback (most recent call last): File "upsnet/upsnet_end2end_test.py", line 44, in <module> from upsnet.dataset import * File "upsnet/../upsnet/dataset/__init__.py", line 1, in <module> from .cityscapes import Cityscapes File "upsnet/../upsnet/dataset/cityscapes.py", line 32, in <module> from upsnet.dataset.json_dataset import JsonDataset, extend_with_flipped_entries, filter_for_training, add_bbox_regression_targets File "upsnet/../upsnet/dataset/json_dataset.py", line 53, in <module> import upsnet.bbox.bbox_transform as box_utils File "upsnet/../upsnet/bbox/bbox_transform.py", line 15, in <module> from .bbox import bbox_overlaps as bbox_overlaps_cython ImportError: upsnet/../upsnet/bbox/bbox.so: undefined symbol: _Py_ZeroStruct
Any help would be great, thanks!