Skip to content

Commit 168b8e2

Browse files
authored
Merge pull request #945 from Unity-Technologies/hotfix-bw-scaling
Fix scaling of greyscale visual obsrrvations
2 parents 4329fbe + b0b5368 commit 168b8e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unity-environment/Assets/ML-Agents/Scripts/CoreBrainInternal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ public void OnInspector()
586586
{
587587
resultTemp[b * hwp + h * wp + w * pixels] =
588588
(currentPixel.r + currentPixel.g + currentPixel.b)
589-
/ 3;
589+
/ 3f / 255.0f;
590590
}
591591
}
592592
}

0 commit comments

Comments
 (0)