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
Checkpoint is not found #237
Comments
I have a similar issue. What is your saving weights format? For my case, it saves as w.1.index instead of w.1. |
I am save as vgg_unet_1.1.index |
The problem is coming from the weight extension, I think. Weight extension should be a number so that it is able to find the latest checkpoint while prediction. |
Yes, this change is caused by newer versions of tf/keras. Downgrading should work. I will also push the update shortly |
I am using tensorflow version 2.2.0 , i can't downgrade using pip, because 2.2.0 is the last version |
@Caioww you can try "pip install tensorflow==1.4" ( or any version you want) |
ERROR: Could not find a version that satisfies the requirement tensorflow==1.4 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0) |
Hi, this have been fixed now. |
It is working now, thank you! |
Hi again @divamgupta, I supposed that after your fixing, the problem is solved, but it didn't. It is because, after Keras update, two different files are generated (the weights' file is corrupted), the file which ending with '.index' is the wrong file, its size is so small that it not possible to be saved weights. So, even if the code seems like running without error, indeed it does not work. |
Thanks, I am looking into the issue. |
Something major did change after the keras update. The sample model with sample dataset gives very good accuracy with older keras/tf versions. But with the new versions the training accuracy is also very bad. |
Which version of Keras and Tensorflow is working? |
It works perfectly with TF 1.14.0 and keras 2.1.4 |
Its fixed now. Everything should work with latest TF/keras versions. |
Hi Mr @divamgupta . The above mentioned link was working perfectly earlier. but now, it gives the error : |
@wassi12 were you able to solve the problem? Even I'm stuck on the same issue |
No it's not fixed. Tensorflow: 2.9.0 and here it is: AssertionError Traceback (most recent call last) File ~/anaconda3/envs/3dreconst/lib/python3.9/site-packages/keras_segmentation/predict.py:24, in model_from_checkpoint_path(checkpoints_path) AssertionError: Checkpoint not found. |
Similar error to me as of today |
Traceback (most recent call last): I tried to reinstall keras_segmentation but still its not working.. |
Have u solved this problem ?? |
I solved it :) :) |
I edited the function find_latest_checkpoint(checkpoints_path, fail_safe=True) and it works: def find_latest_checkpoint(checkpoints_path, fail_safe=True):
|
I am trying to run this command after I have trained the network but it is giving an error.
File "C:\Users\Caiow\AppData\Local\Programs\Python\Python38\lib\site-packages\keras_segmentation\predict.py", line 175, in predict_multiple model = model_from_checkpoint_path(checkpoints_path) File "C:\Users\Caiow\AppData\Local\Programs\Python\Python38\lib\site-packages\keras_segmentation\predict.py", line 29, in model_from_checkpoint_path assert (latest_weights is not None), "Checkpoint not found." AssertionError: Checkpoint not found.
The text was updated successfully, but these errors were encountered: