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

AssertionError: Checkpoint not found. analogous to #237 issue #286

Closed
DomenicoMessina opened this issue Mar 25, 2021 · 8 comments
Closed

Comments

@DomenicoMessina
Copy link

Hi,

I've encountered the same issue of #237.
I tried to run this google colab notebook, without positive results

https://colab.research.google.com/drive/1Kpy4QGFZ2ZHm69mPfkmLSUes8kj6Bjyi?usp=sharing#scrollTo=79ib1d3xFpAy

You developed a fantastic library. I hope you will fix this issue.
Thanks,
Domenico

@divamgupta
Copy link
Owner

I just ran colab this notebook. And it works perfectly fine and I am not able to reproduce the error you are facing.

@DomenicoMessina
Copy link
Author

Thank you for your fast answer, Divamgupta.

I've added to the notebook the module google.colab to have the access to drive, using the following code

import os
from google.colab import drive
drive.mount('/gdrive/',force_remount = True)

os.symlink('/gdrive/My Drive/', 'my_drive')

After that, I manually downloaded and extracted your dataset in a subfolder of my_drive folder. Maybe the code do not recognize this?

@PaulaScharf
Copy link

I also have the same error. It runs fine when I run the google colab but if I try the same commands on my home PC it cant find the checkpoints. Specifically this line does not seem to find any files in my checkpoints-folder.

@divamgupta
Copy link
Owner

Which OS are you using and what is exact command you are using?

@PaulaScharf
Copy link

PaulaScharf commented Mar 31, 2021

I am on Windows 10 home (x64).
I downloaded the datasets with the given link.
Then I ran
python -m keras_segmentation train --checkpoints_path="./checkpoints/vgg_unet_1" --train_images="./dataset1/images_prepped_train/" --train_annotations="./dataset1/annotations_prepped_train/" --val_images="./dataset1/images_prepped_test/" --val_annotations="./dataset1/annotations_prepped_test/" --n_classes=50 --input_height=320 --input_width=640 --model_name="vgg_unet" --epochs=5
and then
python -m keras_segmentation predict --checkpoints_path="./checkpoints/vgg_unet_1" --input_path="./dataset1/images_prepped_test/0016E5_07959.png" --output_path="./out24.png".
Then I get the same error as in #237.

It works if I change this line to the following:
all_checkpoint_files = glob.glob(checkpoints_path + "*.*")

@divamgupta
Copy link
Owner

divamgupta commented Mar 31, 2021 via email

@PaulaScharf
Copy link

Screenshot 2021-03-31 143852

(I aborted training after 1 epoch because it takes so long)

@divamgupta
Copy link
Owner

Thanks, I have fixed it in the latest commit.

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

3 participants