Explore Courses Blog Tutorials Interview Questions
0 votes
in AI and Deep Learning by (120 points)
i want to execute my web application development my model is run very well just when i run web app give me this error

HERE - - [26/Nov/2020 14:48:17] "POST /predict HTTP/1.1" 500 -

Traceback (most recent call last):

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\", line 2309, in __call__

    return self.wsgi_app(environ, start_response)

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\", line 2295, in wsgi_app

    response = self.handle_exception(e)

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\", line 1741, in handle_exception

    reraise(exc_type, exc_value, tb)

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\", line 35, in reraise

    raise value

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\", line 2292, in wsgi_app

    response = self.full_dispatch_request()

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\", line 1815, in full_dispatch_request

    rv = self.handle_user_exception(e)

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\", line 1718, in handle_user_exception

    reraise(exc_type, exc_value, tb)

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\", line 35, in reraise

    raise value

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\", line 1813, in full_dispatch_request

    rv = self.dispatch_request()

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\", line 1799, in dispatch_request

    return self.view_functions[rule.endpoint](**req.view_args)

  File "C:\Users\ASUS\Desktop\my code\webapp\", line 48, in predict

    prediction = model.predict(test_image)

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\keras\engine\", line 1441, in predict

    x, _, _ = self._standardize_user_data(x)

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\keras\engine\", line 574, in _standardize_user_data

    x = training_utils.standardize_input_data(

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\keras\engine\", line 131, in standardize_input_data

    raise ValueError(

ValueError: Error when checking input: expected model_6_input to have 4 dimensions, but got array with shape (1, 100, 100)


Please log in or register to answer this question.

Browse Categories