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

5 views (last 30 days)
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 Comments
Dr Peter Hobden
Dr Peter Hobden on 25 Mar 2025
Moved: Torsten on 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)
...

Sign in to comment.

Answers (0)

Categories

Find more on Image Data Workflows in Help Center and File Exchange

Tags

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!