Skip to content

how to load the "padded" version of MimickNet model ? #21

Open
@Shengwuei

Description

@Shengwuei

Hi Sir,

In Python, below codes load the model "mimicknet_1568473738-210304.h5" successfully

mimicknet_model = tf.keras.models.load_model('./mimicknet_1568473738-210304.h5' compile=False)

However, if change the model file to 'padded_mimicknet_1568473738-210304.h5', it gives me the error :

ValueError: bad marshal data (unknown type code)

After some googling, that might be related to the Python version used when compiling the model file, though I believe you compiled these models under the same Python version (?), so for now I have no idea about how to proceed.

As my understanding, the "padded" version has built in the custom_pad() and custom_depad() function in layer input and output, so I can directly use the model without the codes to define custom_pad() and custom_depad(), so I would prefer to use the "padded" version, thanks and very appreciated for your help .

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