浏览代码

Merge pull request #1556 from Unity-Technologies/hotfix-0.6.0a-wrong-warning-visual

Addressing #1537
/hotfix-v0.9.2a
GitHub 6 年前
当前提交
3b702792
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      UnitySDK/Assets/ML-Agents/Scripts/InferenceBrain/ModelParamLoader.cs

4
UnitySDK/Assets/ML-Agents/Scripts/InferenceBrain/ModelParamLoader.cs


var widthBp = resolutionBp.width;
var heightBp = resolutionBp.height;
var pixelBp = resolutionBp.blackAndWhite ? 1 : 3;
var widthT = tensor.Shape[1];
var heightT = tensor.Shape[2];
var heightT = tensor.Shape[1];
var widthT = tensor.Shape[2];
var pixelT = tensor.Shape[3];
if ((widthBp != widthT) || (heightBp != heightT) || (pixelBp != pixelT))
{

正在加载...
取消
保存