laughtervv / SGPN

SGPN:Similarity Group Proposal Network for 3D Point Cloud Instance Segmentation, CVPR, 2018
MIT License
268 stars 62 forks source link

error when running valid.py #2

Closed amiltonwong closed 5 years ago

amiltonwong commented 6 years ago

Hi, @laughtervv ,

I got the following error when I run valid.py

(py2.7_tf1.4) root@milton-ThinkCentre-M93p:/data/code6/SGPN# python valid.py 
Traceback (most recent call last):
  File "valid.py", line 6, in <module>
    from utils.test_utils import *
  File "/data/code6/SGPN/utils/test_utils.py", line 310, in <module>
    magma_cmap = mpl.cm.get_cmap('magma')
AttributeError: 'module' object has no attribute 'cm'

I can run python train.py successfully before running valid.py. Could you suggest me how to fix it?

THX!

mr-scrawley commented 6 years ago

I encountered the same problem and was able to fix it with an additional, explicit import: import matplotlib.cm