DSE-MSU / DeepRobust

A pytorch adversarial library for attack and defense methods on images and graphs
MIT License
994 stars 192 forks source link

Getting scipy error on running test_pgdtraining.py #148

Open RamachandranSitaraman opened 1 year ago

RamachandranSitaraman commented 1 year ago

Getting the following error after pip install DeepRobust and trying to run test_pdgtraining.py python test_pgdtraining.py Traceback (most recent call last): File "test_pgdtraining.py", line 1, in from deeprobust.image.defense.pgdtraining import PGDtraining File "/Users/vrsitaraman/anaconda3/envs/DeepRobust/lib/python3.8/site-packages/deeprobust/image/init.py", line 3, in from deeprobust.image import attack File "/Users/vrsitaraman/anaconda3/envs/DeepRobust/lib/python3.8/site-packages/deeprobust/image/attack/init.py", line 9, in from deeprobust.image.attack import cw File "/Users/vrsitaraman/anaconda3/envs/DeepRobust/lib/python3.8/site-packages/deeprobust/image/attack/cw.py", line 9, in from deeprobust.image.optimizer import AdamOptimizer File "/Users/vrsitaraman/anaconda3/envs/DeepRobust/lib/python3.8/site-packages/deeprobust/image/optimizer.py", line 17, in from scipy.optimize.optimize import _status_message ImportError: cannot import name '_status_message' from 'scipy.optimize.optimize' (/Users/vrsitaraman/anaconda3/envs/DeepRobust/lib/python3.8/site-packages/scipy/optimize/optimize.py)