Closed itspngu closed 5 years ago
Nevermind, I sat at this for too long and got tunnel vision. Specifying the part as follows solved the issue:
prediction.setModelPath("./net/data/models/model_ex-021_acc-0.875000.h5")
Good to know you got this resolved. And it is a very interesting application you got there in your code.
Hi! I trained a test model on DenseNet and am trying to use it with the custom prediction class.
Here is the code I used to train the model:
The training seems to work fine. I then transferred the highest accuracy file to the remote system which is supposed to do the image recognition. This is the relevant snippet of the script:
I tried several ways to specify the path and moving the file to different directories, but whatever I do, I keep getting the following exception:
I sat at this for about 4 hours and am starting to suspect that there's a bug somewhere. Things I tried:
I'm at wit's end here. The model file definitely is where I tell the framework to look for it. Any ideas?