weiliu89 / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
4.77k stars 1.68k forks source link

AttributeError while running ssd_pascal.py #458

Closed JunchangFan closed 7 years ago

JunchangFan commented 7 years ago

when i run ssd_pascal.py i get this: Traceback (most recent call last): File "examples/ssd/ssd_pascal.py", line 273, in mining_type = P.MultiBoxLoss.MAX_NEGATIVE File "/home/fantasi/caffe-ssd/python/caffe/net_spec.py", line 240, in getattr return getattr(getattr(caffe_pb2, name + 'Parameter'), param_name) AttributeError: type object 'MultiBoxLossParameter' has no attribute 'MAX_NEGATIVE'

can you tell me how to fix it? thanks for help

i know the reason ,when i export the PYTHONPATH ,it works. thanks~~

zhanglijun95 commented 6 years ago

Hello! How did you solve this problem? Could you give me more details? I met this as well.