I created a ResNet model and saved it, but when trying to run predictions after loading in a different notebook, I get a bunch of errors.
Lets say I have notebook A and B. In notebook A I have created a model called resnet_model. I can run predictions and it's all fine. I saved the model like this
resnet_model.save(os.path.join(DATAPATH,"res1_network.h5"))
I then load the model in notebook A
loaded_model = load_model(os.path.join(DATAPATH,"res1_network.h5"))
I run predictions on it and it's exactly the same as before. Now if I go to notebook B and load the model and attempt to predict like this
res1_model = load_model(os.path.join(DATAPATH,"res1_network.h5"))
res1_model.predict(pred_list, verbose=1)
I get a series of errors
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 model_2/conv2d/Conv2D (defined at C:\Users\Dave\Miniconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\framework\ops.py:1751) ]] [Op:__inference_distributed_function_23018]
Function call stack:
distributed_function
How can cuDNN not be working properly in this notebook, but it's fine in the other one. How could I even build the model if it doesn't work?