- mac OSX 10.15.2 or higher
- Xcode 11.3.1 or higher
- (iPad with iPad OS 13.3 or higher)
- (Apple Pencil)
To reproduce the training you'll be also required to have
- Docker
- Open
prototype/py/colab/Colab-create-dataset-and-train.ipynb
with Google Colaboratory. - Execute all the cell from the top. Note that it'll take about half a day to complete the training.
- Download the weight
/content/iOS-note-v2/prototype/py/bin/3blocks_model_weights.h5
to your local repository of this and put that inprototype/py/bin/
- Build a docker image with the command
make docker-build
. This command must be called inprototype/py/
- After building the image, call
make env
and start up a docker container. - Use the command
python conversion.py --config config/resnet.3blocks.json
to get CoreML model weights.
- Open
prototype/NoteApp/NoteApp.xcodeproj
with Xcode. - Compile and run on real device.
In case you do not have iPad and Apple pencil, this application offers a way to do that with simulator. After starting up the App, click the button in the left of Navigation Bar that says Finger / Stylus
. When it is set to Finger
, you can use the App on simulator.