You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -276,11 +276,23 @@ public ModelAsset GetModelForBehaviorName(string behaviorName)
276
276
if(rawModel==null)
277
277
{
278
278
Debug.Log($"Couldn't load model file(s) for {behaviorName} in {m_BehaviorNameOverrideDirectory} (full path: {Path.GetFullPath(m_BehaviorNameOverrideDirectory)}");
279
+
279
280
// Cache the null so we don't repeatedly try to load a missing file
280
281
m_CachedModels[behaviorName]=null;
281
282
returnnull;
282
283
}
283
284
285
+
// TODO enable this when we have a decision on supporting loading/converting an ONNX model directly into a ModelAsset
286
+
// ModelAsset asset;
287
+
// if (isOnnx)
288
+
// {
289
+
// var modelName = Path.Combine(m_BehaviorNameOverrideDirectory, $"{behaviorName}.onnx");
290
+
// asset = LoadOnnxModel(modelName);
291
+
// }
292
+
// else
293
+
// {
294
+
// asset = LoadSentisModel(rawModel);
295
+
// }
284
296
// var asset = isOnnx ? LoadOnnxModel(rawModel) : LoadSentisModel(rawModel);
0 commit comments