Skip to content

Error while Loading Homography weights #37

Open
@muradh2994

Description

@muradh2994

homography model code was working fine until last week. Then i executed below blocks of code to overcome the tensorflow issue. Currently unable to load model weights due to AttributeError: 'str' object has no attribute 'decode' .

image

from narya.narya.models.keras_models import DeepHomoModel

deep_homo_model = DeepHomoModel()

WEIGHTS_PATH = (
"https://storage.googleapis.com/narya-bucket-1/models/deep_homo_model.h5"
)
WEIGHTS_NAME = "deep_homo_model.h5"
WEIGHTS_TOTAR = False

checkpoints = tf.keras.utils.get_file(
WEIGHTS_NAME, WEIGHTS_PATH, WEIGHTS_TOTAR,
)

deep_homo_model.load_weights(checkpoints)

corners = deep_homo_model(image)

image

I also additionally installed !pip install -q h5py==2.10.0 to overcome " AttributeError: 'str' object has no attribute 'decode' "

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions