浏览代码

better message for new model format (#5240)

/release_16_branch
GitHub 4 年前
当前提交
6e0629a8
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. 11
      com.unity.ml-agents/Runtime/Inference/BarracudaModelParamLoader.cs

11
com.unity.ml-agents/Runtime/Inference/BarracudaModelParamLoader.cs


"Cannot use this model.");
return failedModelChecks;
}
if (modelApiVersion != k_ApiVersion)
if (modelApiVersion < k_ApiVersion)
return failedModelChecks;
}
if (modelApiVersion > k_ApiVersion)
{
failedModelChecks.Add(
"Model was trained with a newer version of the trainer than is supported. " +
"Either retrain with an older trainer, or update to a newer version of com.unity.ml-agents.\n" +
$"Model version: {modelApiVersion} Supported version: {k_ApiVersion}"
);
return failedModelChecks;
}

正在加载...
取消
保存