Description
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' .
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)
I also additionally installed !pip install -q h5py==2.10.0 to overcome " AttributeError: 'str' object has no attribute 'decode' "