Unity-Technologies / barracuda-release

Other
564 stars 76 forks source link

Loading from Application.persistentDataPath #334

Open Wayne-nulitics opened 8 months ago

Wayne-nulitics commented 8 months ago

Would it at all be possible to dynamically load model / onnx files at runtime from a URL or preferably from the persistentDatapath? For example: Download a model via www.get, save to persistantDataPath then,

var modelPath = Path.Combine(Application.persistentDataPath, "models", "mymodel.onnx"); Model model = ModelLoader.Load(modelPath);