[255, 255, 255], # empty
[0, 0, 0], # wall
[0, 255, 0], # start
- [0, 0, 255], # goal
+ [127, 127, 255], # goal
[255, 0, 0], # path
]
)
c_score_paths = score_paths.unsqueeze(1).expand(-1, 3, -1, -1)
c_score_paths = (
c_score_paths * colors[4].reshape(1, 3, 1, 1)
- + (1 - c_score_paths) * colors[3].reshape(1, 3, 1, 1)
+ + (1 - c_score_paths) * colors[0].reshape(1, 3, 1, 1)
).long()
c_score_paths = c_score_paths * (mazes.unsqueeze(1) == v_empty) + c_mazes * (
mazes.unsqueeze(1) != v_empty