hello, i didnt use the save_weights function to save weights. I just saved the whole model. I want to use the weights from that model and use it on my new model, I looked it up on stackoverflow but when I check the model.summary() it gives me the structure of the previous model.
model = Sequential()
model.compile(optimizer=Adam(learning_rate=0.001),loss='categorical_crossentropy',metrics=['accuracy'])
model = tf.keras.models.load_model("/kaggle/input/bestmodel/CNN_Model-(64, 64, 1)-1670238819", compile=False)
model.summary()```