Deploying APP with loading model gives error

Dear stremlit experts,

when I try to deploy app (where I load VAE decoder model), I get the following error:

Error loading the model: Error when deserializing class ‘Conv2DTranspose’ using config={‘name’: ‘conv2d_transpose’, ‘trainable’: True, ‘dtype’: ‘float32’, ‘filters’: 128, ‘kernel_size’: [3, 3], ‘strides’: [2, 2], ‘padding’: ‘same’, ‘data_format’: ‘channels_last’, ‘dilation_rate’: [1, 1], ‘groups’: 1, ‘activation’: ‘relu’, ‘use_bias’: True, ‘kernel_initializer’: {‘class_name’: ‘GlorotUniform’, ‘config’: {‘seed’: None}}, ‘bias_initializer’: {‘class_name’: ‘Zeros’, ‘config’: {}}, ‘kernel_regularizer’: None, ‘bias_regularizer’: None, ‘activity_regularizer’: None, ‘kernel_constraint’: None, ‘bias_constraint’: None, ‘output_padding’: None}.

Exception encountered: Unrecognized keyword arguments passed to Conv2DTranspose: {‘groups’: 1}

Please how can I modify my model to be properly loaded? I dont want to retrain it…

Thank you!!

Katerina

I solved this problem by changing python version to 3.9 and tensorflow version to 2.12.1

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.