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

test() in recognizer.py not working properly #8

Open
Aditya718 opened this issue Jan 7, 2019 · 4 comments
Open

test() in recognizer.py not working properly #8

Aditya718 opened this issue Jan 7, 2019 · 4 comments

Comments

@Aditya718
Copy link

File "recognizer.py", line 35, in
test()
File "recognizer.py", line 28, in test
test_run=e.calculate(test_run)
File "C:\Users\Aditya\Attendance-using-Face-master\embedding.py", line 7, in calculate
return self.model.predict(img)[0]
File "C:\Users\Aditya\Anaconda3\envs\myenv\lib\site-packages\keras\engine\training.py", line 1169, in predict
steps=steps)
File "C:\Users\Aditya\Anaconda3\envs\myenv\lib\site-packages\keras\engine\training_arrays.py", line 294, in predict_loop
batch_outs = f(ins_batch)
File "C:\Users\Aditya\Anaconda3\envs\myenv\lib\site-packages\keras\backend\tensorflow_backend.py", line 2715, in call
return self._call(inputs)
File "C:\Users\Aditya\Anaconda3\envs\myenv\lib\site-packages\keras\backend\tensorflow_backend.py", line 2675, in _call
fetched = self._callable_fn(*array_vals)
File "C:\Users\Aditya\Anaconda3\envs\myenv\lib\site-packages\tensorflow\python\client\session.py", line 1439, in call
run_metadata_ptr)
File "C:\Users\Aditya\Anaconda3\envs\myenv\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 528, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
[[{{node Conv2d_1a_3x3/convolution}} = Conv2D[T=DT_FLOAT, _class=["loc:@Conv2d_1a_3x3_BatchNorm/cond/FusedBatchNorm/Switch"], data_format="NCHW", dilations=[1, 1, 1, 1], padding="VALID", strides=[1, 1, 2, 2], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/device:GPU:0"](Conv2d_1a_3x3/convolution-0-TransposeNHWCToNCHW-LayoutOptimizer, Conv2d_1a_3x3/kernel/read)]]
[[{{node Bottleneck_BatchNorm/cond/Merge/_4101}} = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device_incarnation=1, tensor_name="e

@shiva13425
Copy link

hi @Aditya718
have you successfully run the command trainer.py? if so kindly give me a suggesstion

@Aditya718
Copy link
Author

Yes I was able to solve the issue

@Aditya718
Copy link
Author

What is the problem that you are facing?

@Aditya718
Copy link
Author

@shiva13425

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

2 participants