Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/triztian/coremlprotobuf.jl
A repository of generated Julia models from Apple's CoreML protobuf message format
https://github.com/triztian/coremlprotobuf.jl
coreml-models julia protobuf3
Last synced: about 1 month ago
JSON representation
A repository of generated Julia models from Apple's CoreML protobuf message format
- Host: GitHub
- URL: https://github.com/triztian/coremlprotobuf.jl
- Owner: triztian
- License: mit
- Created: 2021-08-23T03:08:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-05T22:31:46.000Z (over 3 years ago)
- Last Synced: 2024-11-11T15:03:55.592Z (about 1 month ago)
- Topics: coreml-models, julia, protobuf3
- Language: Julia
- Homepage:
- Size: 174 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CoreMLProtobuf.jl
A repository of generate Julia models from Apple's CoreML protobuf message format
## CoreML Specification
* [Core ML Model Format Specification](https://apple.github.io/coremltools/mlmodel/index.html)
## Obtaining the Protobuf Formats
Simply run the script, below at the root of this project repo:
```bash
./download-protos.sh
```## Generating the Julia source files
First install `ProtoBuf.jl`
```bash
julia -e 'using Pkg; Pkg.add("ProtoBuf")'
```Alternatively:
```
julia > ]
(@v1.6) pkg> add ProtoBuf
```Then run the `protoc` command:
```bash
protoc \
--plugin=$HOME/.julia/packages/TYEdo/ProtoBuf/plugin/protoc-gen-julia \
-I=src/Protobuf3 --julia_out=src/ src/Protobuf3/*.proto
```* [Generation Docs](https://github.com/JuliaIO/ProtoBuf.jl/blob/master/PROTOC.md)
* [Usage Docs](https://github.com/JuliaIO/ProtoBuf.jl/blob/master/USAGE.md)### Using the generated files
Some examples of how to use the generated files in another julia package:
```julia
using CoreMLProtobuf# To use the GLMRegressor or a Scaler
CoreMLProtobuf.Specification.GLMRegressor
CoreMLProtobuf.Specification.Scaler
```