CoreMLProtobuf.jl

A repository of generated Julia models from Apple's CoreML protobuf message format
Author triztian
Popularity
1 Star
Updated Last
8 Months Ago
Started In
August 2021

CoreMLProtobuf.jl

A repository of generate Julia models from Apple's CoreML protobuf message format

CoreML Specification

Obtaining the Protobuf Formats

Simply run the script, below at the root of this project repo:

./download-protos.sh

Generating the Julia source files

First install ProtoBuf.jl

julia -e 'using Pkg; Pkg.add("ProtoBuf")'

Alternatively:

julia > ]
(@v1.6) pkg> add ProtoBuf

Then run the protoc command:

protoc \
	--plugin=$HOME/.julia/packages/TYEdo/ProtoBuf/plugin/protoc-gen-julia \
	-I=src/Protobuf3 --julia_out=src/ src/Protobuf3/*.proto

Using the generated files

Some examples of how to use the generated files in another julia package:

using CoreMLProtobuf

# To use the GLMRegressor or a Scaler
CoreMLProtobuf.Specification.GLMRegressor
CoreMLProtobuf.Specification.Scaler

Used By Packages

No packages found.