Neural network Caffee模型对从谷歌搜索下载的图像有效吗?

Neural network Caffee模型对从谷歌搜索下载的图像有效吗?,neural-network,face-recognition,Neural Network,Face Recognition,所以,我从这篇关于年龄和性别检测的文章开始,我面临一个小问题。我无法在从谷歌下载的图片上运行caffe。实际上,它只在我从手机或网络摄像头拍摄的照片上运行。有没有什么具体的原因,或者我做得不对?我还用烧瓶把这些都包起来 for example:- when I feed this image that i took from google search https://www.hanselman.com/blog/content/binary/WindowsLiveWriter/DIYMakin

所以,我从这篇关于年龄和性别检测的文章开始,我面临一个小问题。我无法在从谷歌下载的图片上运行caffe。实际上,它只在我从手机或网络摄像头拍摄的照片上运行。有没有什么具体的原因,或者我做得不对?我还用烧瓶把这些都包起来

for example:- when I feed this image that i took from google search https://www.hanselman.com/blog/content/binary/WindowsLiveWriter/DIYMakingaWideAngleWebcam_1478B/2010-02-16%2023-01-29.283_2.jpg


I get this as my logs:- 

127.0.0.1 - - [12/Mar/2020 11:51:57] "?[1m?[35mPOST /predicWithImage HTTP/1.1?[0m" 500 -
Traceback (most recent call last):
  File "C:\Users\abc\AppData\Local\Continuum\anaconda3\lib\site- 
  packages\flask\app.py", line 2463, in __call__
    return self.wsgi_app(environ, start_response)
  File "C:\Users\abc\AppData\Local\Continuum\anaconda3\lib\site- 
  packages\flask\app.py", line 2449, in wsgi_app
    response = self.handle_exception(e)
  File "C:\Users\abc\AppData\Local\Continuum\anaconda3\lib\site- 
  packages\flask_cors\extension.py", line 161, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "C:\Users\abc\AppData\Local\Continuum\anaconda3\lib\site- 
  packages\flask\app.py", line 1866, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "C:\Users\abc\AppData\Local\Continuum\anaconda3\lib\site- 
  packages\flask\_compat.py", line 39, in reraise
    raise value
  File "C:\Users\abc\AppData\Local\Continuum\anaconda3\lib\site- 
  packages\flask\app.py", line 2446, in wsgi_app
    response = self.full_dispatch_request()
  File "C:\Users\abc\AppData\Local\Continuum\anaconda3\lib\site- 
  packages\flask\app.py", line 1952, in full_dispatch_request
    return self.finalize_request(rv)
  File "C:\Users\abc\AppData\Local\Continuum\anaconda3\lib\site- 
  packages\flask\app.py", line 1967, in finalize_request
    response = self.make_response(rv)
  File "C:\Users\abc\AppData\Local\Continuum\anaconda3\lib\site- 
  packages\flask\app.py", line 2097, in make_response
    "The view function did not return a valid response. The"
  TypeError: The view function did not return a valid response. The 
  function either returned None or ended without a return statement.
如果我输入从网络摄像头/手机拍摄的照片,则vs日志

Found 1 faces
printing the blob
Gender: Male
Age Range: (15, 20)

127.0.0.1 - - [12/Mar/2020 11:56:07] "?[37mPOST /predicWithImage HTTP/1.1?[0m" 200 -

正如你所看到的,我从网络摄像头中得到200张图片,而谷歌图片得到500张。这不是flask wrapper的问题,而是我直接用磁盘上的一张图片在cv.imread()中测试了代码,Caffe模型没有检测到它。

你能编辑这个问题来解释在谷歌图片上运行Caffe时发生了什么吗?为了帮助您,我们需要知道您看到的错误以及导致错误的代码。嗨@Thomas,我已经添加了后面的资源。