Skip to content

Instantly share code, notes, and snippets.

@divya1md
Created July 22, 2018 09:19
Show Gist options
  • Save divya1md/2ff48ff815899ed53a9d252e62072cbb to your computer and use it in GitHub Desktop.
Save divya1md/2ff48ff815899ed53a9d252e62072cbb to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "C:\Python35\lib\site-packages\flask\app.py", line 1994, in __call__
return self.wsgi_app(environ, start_response)
File "C:\Python35\lib\site-packages\flask\app.py", line 1985, in wsgi_app
response = self.handle_exception(e)
File "C:\Python35\lib\site-packages\flask\app.py", line 1540, in handle_exception
reraise(exc_type, exc_value, tb)
File "C:\Python35\lib\site-packages\flask\_compat.py", line 33, in reraise
raise value
File "C:\Python35\lib\site-packages\flask\app.py", line 1982, in wsgi_app
response = self.full_dispatch_request()
File "C:\Python35\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request
rv = self.handle_user_exception(e)
File "C:\Python35\lib\site-packages\flask\app.py", line 1517, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "C:\Python35\lib\site-packages\flask\_compat.py", line 33, in reraise
raise value
File "C:\Python35\lib\site-packages\flask\app.py", line 1612, in full_dispatch_request
rv = self.dispatch_request()
File "C:\Python35\lib\site-packages\flask\app.py", line 1598, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "C:\Users\dmutta\Desktop\damage_part\sample.py", line 43, in upload_file2
result = model.predict(test_image)
File "C:\Python35\lib\site-packages\keras\models.py", line 1064, in predict
steps=steps)
File "C:\Python35\lib\site-packages\keras\engine\training.py", line 1817, in predict
check_batch_axis=False)
File "C:\Python35\lib\site-packages\keras\engine\training.py", line 123, in _standardize_input_data
str(data_shape))
ValueError: Error when checking : expected conv2d_1_input to have shape (64, 64, 3) but got array with shape (150, 150, 3)
@divya1md
Copy link
Author

My code is working when single image is uploaded but getting issue when given folder of images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment