Python code to train neural network models with your original dataset for semantic segmentation. This codeset also includes a converter to create macOS Core ML models from trained Keras models for A.I.Segmentation.
https://compositecreatures.jimdofree.com/a-i-segmentation/download/