You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After cloning and installing requirements, I tried to run the system but it keeps on returning me this error. Anyone that can help me?
File "facenet.py", line 194, in
database = prepare_database()
File "facenet.py", line 57, in prepare_database
database[identity] = img_path_to_encoding(file, FRmodel)
File "D:\NOT FOR EVERYONE\DO NOT OPEN\EJ -Projects\VUI\Recognition\facenet-face-recognition\fr_utils.py", line 194, in img_path_to_encoding
return img_to_encoding(img1, model)
File "D:\NOT FOR EVERYONE\DO NOT OPEN\EJ -Projects\VUI\Recognition\facenet-face-recognition\fr_utils.py", line 202, in img_to_encoding
embedding = model.predict_on_batch(x_train)
File "C:\Anaconda\lib\site-packages\tensorflow\python\keras\engine\training.py", line 1820, in predict_on_batch
outputs = self.predict_function(iterator)
File "C:\Anaconda\lib\site-packages\tensorflow\python\eager\def_function.py", line 828, in call
result = self._call(*args, **kwds)
File "C:\Anaconda\lib\site-packages\tensorflow\python\eager\def_function.py", line 894, in _call
return self._concrete_stateful_fn._call_flat(
File "C:\Anaconda\lib\site-packages\tensorflow\python\eager\function.py", line 1918, in _call_flat
return self._build_call_outputs(self._inference_function.call(
File "C:\Anaconda\lib\site-packages\tensorflow\python\eager\function.py", line 555, in call
outputs = execute.execute(
File "C:\Anaconda\lib\site-packages\tensorflow\python\eager\execute.py", line 59, in quick_execute
tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
tensorflow.python.framework.errors_impl.InvalidArgumentError: Default MaxPoolingOp only supports NHWC on device type CPU
[[node FaceRecoModel/max_pooling2d/MaxPool (defined at D:\NOT FOR EVERYONE\DO NOT OPEN\EJ -Projects\VUI\Recognition\facenet-face-recognition\fr_utils.py:202) ]] [Op:__inference_predict_function_3592]
Function call stack:
predict_function
The text was updated successfully, but these errors were encountered:
After cloning and installing requirements, I tried to run the system but it keeps on returning me this error. Anyone that can help me?
File "facenet.py", line 194, in
database = prepare_database()
File "facenet.py", line 57, in prepare_database
database[identity] = img_path_to_encoding(file, FRmodel)
File "D:\NOT FOR EVERYONE\DO NOT OPEN\EJ -Projects\VUI\Recognition\facenet-face-recognition\fr_utils.py", line 194, in img_path_to_encoding
return img_to_encoding(img1, model)
File "D:\NOT FOR EVERYONE\DO NOT OPEN\EJ -Projects\VUI\Recognition\facenet-face-recognition\fr_utils.py", line 202, in img_to_encoding
embedding = model.predict_on_batch(x_train)
File "C:\Anaconda\lib\site-packages\tensorflow\python\keras\engine\training.py", line 1820, in predict_on_batch
outputs = self.predict_function(iterator)
File "C:\Anaconda\lib\site-packages\tensorflow\python\eager\def_function.py", line 828, in call
result = self._call(*args, **kwds)
File "C:\Anaconda\lib\site-packages\tensorflow\python\eager\def_function.py", line 894, in _call
return self._concrete_stateful_fn._call_flat(
File "C:\Anaconda\lib\site-packages\tensorflow\python\eager\function.py", line 1918, in _call_flat
return self._build_call_outputs(self._inference_function.call(
File "C:\Anaconda\lib\site-packages\tensorflow\python\eager\function.py", line 555, in call
outputs = execute.execute(
File "C:\Anaconda\lib\site-packages\tensorflow\python\eager\execute.py", line 59, in quick_execute
tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
tensorflow.python.framework.errors_impl.InvalidArgumentError: Default MaxPoolingOp only supports NHWC on device type CPU
[[node FaceRecoModel/max_pooling2d/MaxPool (defined at D:\NOT FOR EVERYONE\DO NOT OPEN\EJ -Projects\VUI\Recognition\facenet-face-recognition\fr_utils.py:202) ]] [Op:__inference_predict_function_3592]
Function call stack:
predict_function
The text was updated successfully, but these errors were encountered: