DeepLabV3-Plus icon indicating copy to clipboard operation
DeepLabV3-Plus copied to clipboard

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}

Open bharath5673 opened this issue 4 years ago • 1 comments

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

bharath5673 avatar Mar 10 '21 06:03 bharath5673

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}

bharath5673 avatar Mar 10 '21 06:03 bharath5673