Open tucan9389 opened 5 years ago
Related issue on Sep 2, 2018 (not solved): https://github.com/apple/coremltools/issues/231
Hi @tucan9389, have you tried tf2/tf.keras -> ONNX -> CoreML conversion?
@AndriiTsok No, did you try in that way? or others?
ValueError: Keras layer '<class 'tensorflow.python.keras._impl.keras.engine.topology.InputLayer'>' not supported.
The issue was solved replacing TF-2.0-alpha0 to TF-1.13.1.
Hi @tucan9389, did the conversion from tf2/tf.keras -> ONNX -> CoreML work when you replaced to TF-1.13.1?
EDIT: Found your 0.1 release containing release/cpm_model/model.* Are these the models from the PoseEstimation-CoreML repository, or this one?
@abrowne2 0.1 version is just cloned from edvardHua/PoseEstimationForMobile repostory. It's same with PoseEstimation-CoreML.
.h5
) → frozen pb(.pb
) → coreml model(.mlmodel
)Are there any news on converting .pb to .mlmodel file?
Are there any news on converting .pb to .mlmodel file?
No in this repo, but the coremltools’s related issue was closed! I’ll try again.
TF2's saved_model is only supported on iOS 13 (minimum_ios_deployment_target=13
) now.
https://apple.github.io/coremltools/
coremltools 2.0.0 does not support tensorflow 2.0 yet. 😟
Alternatively, I'll port to pure Keras project, and then train and convert the model to Core ML model.