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

OSError: SavedModel file does not exist at: /content/DeepLabV3-Plus/checkpoints/deeplabv3plus_with_resnet50_2.data-00001-of-00002/{saved_model.pbtxt|saved_model.pb} #12

Open
bharath5673 opened this issue Mar 10, 2021 · 1 comment

Comments

@bharath5673
Copy link

im getting this when im trying to predict // plzz help //

@bharath5673
Copy link
Author

bharath5673 commented Mar 10, 2021

model_file = '/content/DeepLabV3-Plus/test/deeplabv3plus_with_resnet50_2.data-00001-of-00002'
train_images = glob('/content/DeepLabV3-Plus/dataset/camvid/train/*')
val_images = glob('/content/DeepLabV3-Plus/dataset/camvid/train/*')
test_images = glob('/content/DeepLabV3-Plus/dataset/camvid/train/*')


def plot_predictions(images_list, size):
    for image_file in images_list:
        image_tensor = read_image(image_file, size)
        prediction = infer(
            image_tensor=image_tensor,
            model_file=model_file
        )
        plot_samples_matplotlib(
            [image_tensor, prediction], figsize=(10, 6)
        )

plot_predictions(train_images[:4], (512, 512))




OSError Traceback (most recent call last)
in ()
16 )
17
---> 18 plot_predictions(train_images[:4], (512, 512))

3 frames
/usr/local/lib/python3.7/dist-packages/tensorflow/python/saved_model/loader_impl.py in parse_saved_model(export_dir)
111 (export_dir,
112 constants.SAVED_MODEL_FILENAME_PBTXT,
--> 113 constants.SAVED_MODEL_FILENAME_PB))
114
115

OSError: SavedModel file does not exist at: /content/DeepLabV3-Plus/deeplabv3plus_with_resnet50_2.data-00001-of-00002/{saved_model.pbtxt|saved_model.pb}

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

1 participant