For models trained in other frameworks there are fewer options, though it’s not that hard to write a parser for most model formats. We have ONNX.jl, which we used to load VGG19, but it’s pretty rough around the edges right now.
Is there any documentation on using ONNX.jl to read in an onnx file into Flux?
Also, is there a way to go from flux → onnx? (If not, I’d be interesting in working on something like this and would welcome pointers on getting started)
Turn the data structure into Julia code (probably via IRTools)
Either eval this code or turn it into a .jl script.
I’m not that familiar with the Keras format, but I think they may separate the weights and architecture into HDF5 and JSON files. If so that’d make step 1 pretty easy, since we have readers for both of those formats.