rpi_assignments/assignment_3/01_Res50_export.py

10 lines
251 B
Python
Raw Permalink Normal View History

2023-10-26 12:27:03 +00:00
# TensorFlow and tf.keras
import tensorflow as tf
from keras.applications import resnet50
# Load the ResNet50 model
resnet50_model = resnet50.ResNet50(weights='imagenet')
# Save model and Export
savepath = "Resnet50.h5"
resnet50_model.save(savepath)