Skip to content

Model cannot be saved because the input shapes have not been set #3

@tportenier

Description

@tportenier

I can train your model and also generate some images periodically. However, when it comes to saving a checkpoint, the code fails with the error message:

ValueError: Model <modules.cut_model.CUT_model object at 0x7f0228263430> cannot be saved because the input shapes have not been set. Usually, input shapes are automatically determined when calling `.fit()` or `.predict()`. To manually set the shapes, call model.build(input_shape)

Note, however, that .fit() is called explicitly in your code. Any ideas on how to debug this?

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