The sample app for training and inference of an image classification model on iPhone using MLImageClassifier.
0
stars
0
forks
source link
Unexpected error occurs: MLImageClassifier.FeatureExtractorType.scenePrint(revision: nil) #1
Closed
moutend closed 3 months ago
Summary
I don't know why, but specifying
scenePrint(revision: nil)
in iOS 17 results in the following error and the model training fails.According to the Apple Developer Documentation, if nil is specified as the revision number, it should be treated as the latest revision number.
Verification Results
The revision number 2 is available from iOS 17. So that specifying
2
on iOS 15 results in an error, which is the expected behavior and not a problem.It is likely that there is a bug in the internal implementation of Create ML framework.
TODO
It seems better to avoid specifying
nil
. I will later modify the implementation ofLogic/ImageTrainer.swift
.