Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running the code after cloning and installing requirements #18

Open
ghost opened this issue Feb 19, 2021 · 0 comments
Open

Error running the code after cloning and installing requirements #18

ghost opened this issue Feb 19, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 19, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants