Closed fadsamo closed 6 years ago
Give a bit more input. How did you install dlib and opencv, what errors do you get?
i got this error InvalidArgumentError Traceback (most recent call last) ~/.virtualenvs/cv/lib/python3.5/site-packages/tensorflow/python/client/session.py in _do_call(self, fn, args) 1326 try: -> 1327 return fn(args) 1328 except errors.OpError as e:
~/.virtualenvs/cv/lib/python3.5/site-packages/tensorflow/python/client/session.py in _run_fn(session, feed_dict, fetch_list, target_list, options, run_metadata) 1296 # Ensure any changes to the graph are reflected in the runtime. -> 1297 self._extend_graph() 1298 with errors.raise_exception_on_not_ok_status() as status:
~/.virtualenvs/cv/lib/python3.5/site-packages/tensorflow/python/client/session.py in _extend_graph(self) 1357 tf_session.TF_ExtendGraph( -> 1358 self._session, graph_def.SerializeToString(), status) 1359 self._opened = True
/usr/lib/python3.5/contextlib.py in exit(self, type, value, traceback) 65 try: ---> 66 next(self.gen) 67 except StopIteration:
~/.virtualenvs/cv/lib/python3.5/site-packages/tensorflow/python/framework/errors_impl.py in raise_exception_on_not_ok_status() 465 compat.as_text(pywrap_tensorflow.TF_Message(status)), --> 466 pywrap_tensorflow.TF_GetCode(status)) 467 finally:
InvalidArgumentError: No OpKernel was registered to support Op 'Switch' with these attrs. Registered devices: [CPU], Registered kernels: device='GPU'; T in [DT_STRING] device='GPU'; T in [DT_BOOL] device='GPU'; T in [DT_INT32] device='GPU'; T in [DT_FLOAT] device='CPU'; T in [DT_FLOAT] device='CPU'; T in [DT_INT32]
[[Node: batch_normalization_12/cond/Switch = Switch[T=DT_BOOL](batch_normalization_1/keras_learning_phase, batch_normalization_1/keras_learning_phase)]]
During handling of the above exception, another exception occurred:
InvalidArgumentError Traceback (most recent call last)
also i installed opencv and dlib correctly...i compiled them correctly in pyimagesearch website solution
Hello guys...could you help me?? I dont know that what's my problem...please help
InvalidArgumentError: No OpKernel was registered to support Op 'Switch' with these attrs. Registered devices: [CPU], Registered kernels:
Error suggests some problems with Tensorflow. Wish i knew more to help, maybe something went wrong during install?
I think I had face_classification working on RaspberryPi, I used some guide to install tensorflow
thank you very much , i will do and will install again
@dariushpt did you solve the problem already? I got the same error on raspberry pi (Ubuntu Mate).
Yes i solve it...you should install tensorflow again....you should ensure that h5py be installed in your virtualenvironment
hello orriaga...codes works so great for me in ubuntu os... when i run video_emotion_gender_demo in raspberry pi that have raspbian stretch as os ,then i got some errors ,did you know i how overcome the errors thanks in advance