Skip to content

Commit 222d491

Browse files
committed
Addressing #1537
1 parent cb0bfa0 commit 222d491

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,8 @@ private string CheckVisualObsShape(Tensor tensor, int visObsIndex)
411411
var widthBp = resolutionBp.width;
412412
var heightBp = resolutionBp.height;
413413
var pixelBp = resolutionBp.blackAndWhite ? 1 : 3;
414-
var widthT = tensor.Shape[1];
415-
var heightT = tensor.Shape[2];
414+
var heightT = tensor.Shape[1];
415+
var widthT = tensor.Shape[2];
416416
var pixelT = tensor.Shape[3];
417417
if ((widthBp != widthT) || (heightBp != heightT) || (pixelBp != pixelT))
418418
{

0 commit comments

Comments
 (0)