- Code updated for Python 3
- A python virtual environment can be created from the requirements file.
- macOS
- Example images are included in the
img
folder. Note that these are lower resolution than the original images changes the classification results in some cases.
Run create_and_save_ml_model.py
to load a pretrained ResNet50 model,
run it on example images and save it in the mlmodel format
- Add the ResNet50.mlmodel to the Xcode library
- Build the project in Xcode
- See example results in blog
- Find the compiled binary and run on an example image e.g.
./CmdSand /path/to/example.img