Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to load TensorFlowModelDataset with SSIM metric #4

Closed
eileen-kuehn opened this issue Jun 24, 2023 · 0 comments
Closed

Fails to load TensorFlowModelDataset with SSIM metric #4

eileen-kuehn opened this issue Jun 24, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@eileen-kuehn
Copy link
Member

eileen-kuehn commented Jun 24, 2023

The current implementation in #1 fails when training with tensorflow as the saved model cannot be correctly loaded since the SSIM metric has been introduced:

DataSetError: Failed while loading data from data set 
TFPTModelDataset(filepath=/.../qc_data_preparation/data/06_models/autoencoder_1-2-3-4, protocol={}, 
save_args={'save_format': tf}).
Unable to restore custom object of class "MeanMetricWrapper" (type _tf_keras_metric). Please make sure that this class is included in the 
`custom_objects` arg when calling `load_model()`. Also, check that the class implements `get_config` and `from_config`.

Complete metadata: {'class_name': 'MeanMetricWrapper', 'name': 'ssim', 'dtype': 'float32', 'config': {'name': 'ssim', 'dtype': 'float32'}, 
'shared_object_id': 2}
@eileen-kuehn eileen-kuehn added the bug Something isn't working label Jun 24, 2023
@eileen-kuehn eileen-kuehn changed the title Fails to load TensorFlowModelDataset with SSIM Fails to load TensorFlowModelDataset with SSIM metric Jun 24, 2023
@eileen-kuehn eileen-kuehn self-assigned this Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant