My export to tensorflow2 with weights is not working as expected, help required

5 vues (au cours des 30 derniers jours)
Dr Peter Hobden
Dr Peter Hobden le 24 Mar 2025
Déplacé(e) : Torsten le 25 Mar 2025
My export to tensorflow2 with weights is not working as expected, help required
In the confusion matrix, everything appears in a single column - i.e all the weights have been set to 1
  5 commentaires
dpb
dpb le 24 Mar 2025
Minimum working example that illustrates the issue?
Dr Peter Hobden
Dr Peter Hobden le 25 Mar 2025
Déplacé(e) : Torsten le 25 Mar 2025
Export a resnet model
Only changes in my example are that the input shape is 228,227 3 and classes are 4
import resnet50python
model = resnet50python.load_model()
#* To save a loaded model into TensorFlow HDF5 format:
model.save('resnet50.h5', save_format='h5')
def create_model():
input_1_unnormalized = keras.Input(shape=(227,227,3), name="input_1_unnormalized")
input_1 = keras.layers.Normalization(axis=(1,2,3), name="input_1_")(input_1_unnormalized)
...

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Image Data Workflows dans Help Center et File Exchange

Tags

Produits


Version

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by