skyhehe123 / SA-SSD

SA-SSD: Structure Aware Single-stage 3D Object Detection from Point Cloud (CVPR 2020)
492 stars 106 forks source link

module 'wx' has no attribute 'FONTWEIGHT_LIGHT' #51

Closed zhixiongzh closed 4 years ago

zhixiongzh commented 4 years ago

when I run test.py, it shows the module 'wx' has no attribute 'FONTWEIGHT_LIGHT'. I have no idea why the project need module "wx" and how to fix it. Can anybody kindly help me ? Thanks!

` (base) root@6e64d0f6dcca:~/SA-SSD# python3 tools/test.py configs/car_cfg.py epoch_50.pth Traceback (most recent call last): File "tools/test.py", line 6, in from mmdet.core.evaluation.kitti_eval import get_official_eval_result File "/root/SA-SSD/mmdet/core/init.py", line 1, in from .anchor import * # noqa: F401, F403 File "/root/SA-SSD/mmdet/core/anchor/init.py", line 2, in from .anchor_target import anchor_target File "/root/SA-SSD/mmdet/core/anchor/anchor_target.py", line 2, in from ..bbox import assign_and_sample, BBoxAssigner, SamplingResult, bbox2delta, rbbox3d2delta File "/root/SA-SSD/mmdet/core/bbox/init.py", line 2, in from .assignment import BBoxAssigner, AssignResult File "/root/SA-SSD/mmdet/core/bbox/assignment.py", line 3, in from mmdet.core.bbox3d import region_similarity File "/root/SA-SSD/mmdet/core/bbox3d/region_similarity.py", line 23, in from mmdet.core.post_processing.rotate_nms_gpu import rotate_iou_gpu, rotate_iou_gpu_eval File "/root/SA-SSD/mmdet/core/post_processing/init.py", line 1, in from .merge_augs import (merge_aug_proposals, merge_aug_bboxes, File "/root/SA-SSD/mmdet/core/post_processing/merge_augs.py", line 4, in from mmdet.core.bbox.transforms import bbox_mapping_back File "/root/SA-SSD/mmdet/core/bbox/transforms.py", line 4, in from mmdet.datasets.kitti_utils import project_rect_to_image, project_velo_to_rect File "/root/SA-SSD/mmdet/datasets/init.py", line 1, in from .custom import CustomDataset File "/root/SA-SSD/mmdet/datasets/custom.py", line 10, in from .utils import to_tensor, random_scale File "/root/SA-SSD/mmdet/datasets/utils.py", line 8, in import matplotlib.pyplot as plt File "/root/anaconda3/lib/python3.7/site-packages/matplotlib/pyplot.py", line 2349, in switch_backend(rcParams["backend"]) File "/root/anaconda3/lib/python3.7/site-packages/matplotlib/init.py", line 820, in getitem plt.switch_backend(rcsetup._auto_backend_sentinel) File "/root/anaconda3/lib/python3.7/site-packages/matplotlib/pyplot.py", line 204, in switch_backend switch_backend(candidate) File "/root/anaconda3/lib/python3.7/site-packages/matplotlib/pyplot.py", line 215, in switch_backend backend_mod = importlib.import_module(backend_name) File "/root/anaconda3/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/root/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_wxagg.py", line 4, in from .backend_wx import ( File "/root/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_wx.py", line 143, in class RendererWx(RendererBase): File "/root/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_wx.py", line 157, in RendererWx 100: wx.FONTWEIGHT_LIGHT, AttributeError: module 'wx' has no attribute 'FONTWEIGHT_LIGHT'

`