Traceback (most recent call last):


 "/usr/local/python/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app

response = self.full_dispatch_request()


 "/usr/local/python/lib/python2.7/site-packages/flask/app.py", line 1642, in full_dispatch_request

response = self.make_response(rv)


 "/usr/local/python/lib/python2.7/site-packages/flask/app.py", line 1731, in make_response

raise ValueError('View function did not return a response')
ValueError: View function did not return a response

Traceback (most recent call last):


 "D:/pythonwork/Adversarial/Cifar10_keras_Adversarial(20181025)/Mis+testAdv_nodp_dat.py", line 198, in <module>

Mis(save_dat_path, save_txt_path, adv_mode, model_name)


 "D:/pythonwork/Adversarial/Cifar10_keras_Adversarial(20181025)/Mis+testAdv_nodp_dat.py", line 104, in Mis

adversarial = adversarial_attack(adv_mode, attack, image, pre_label)


 "D:/pythonwork/Adversarial/Cifar10_keras_Adversarial(20181025)/Mis+testAdv_nodp_dat.py", line 70, in adversarial_attack

adversarial = attack(input_or_adv=image, label=pre_label)


 "D:\Users\Python\lib\site-packages\foolbox\attacks\base.py", line 97, in wrapper

_ = call_fn(self, a, label=None, unpack=None, **kwargs)


 "D:\Users\Python\lib\site-packages\foolbox\attacks\deepfool.py", line 144, in __call__

optimal = np.argmin(distances)


 "D:\Users\Python\lib\site-packages\numpy\core\fromnumeric.py", line 1068, in argmin

return _wrapfunc(a, 'argmin', axis=axis, out=out)


 "D:\Users\Python\lib\site-packages\numpy\core\fromnumeric.py", line 62, in _wrapfunc

return _wrapit(obj, method, *args, **kwds)


 "D:\Users\Python\lib\site-packages\numpy\core\fromnumeric.py", line 42, in _wrapit

result = getattr(asarray(obj), method)(*args, **kwds)
ValueError: attempt to get argmin of an empty sequence
