bodybuilding-pose-app / resave_model.py
Sean Carnahan
Patch for Hugging Face Spaces: fix matplotlib config, check .gitignore, prep for model file inclusion
f20fe1f
raw
history blame contribute delete
285 Bytes
from tensorflow.keras.models import load_model
model = load_model('/Users/sc-gladiator/cv.github.io/external/BodybuildingPoseClassifier/bodybuilding_pose_classifier.h5')
# model.save('bodybuilding_pose_classifier_tf2.12.h5')
model.save('bodybuilding_pose_classifier_savedmodel.keras')