浏览代码

add note about Y flip (#2724)

/develop-gpu-test
GitHub 5 年前
当前提交
31cfd498
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
      UnitySDK/Assets/ML-Agents/Scripts/Utilities.cs

2
UnitySDK/Assets/ML-Agents/Scripts/Utilities.cs


var t = textureOffset;
var texturePixels = texture.GetPixels32();
// During training, we convert from Texture to PNG before sending to the trainer, which has the
// effect of flipping the image. We need another flip here at inference time to match this.
for (var h = height - 1; h >= 0; h--)
{
for (var w = 0; w < width; w++)

正在加载...
取消
保存