Update
authorFrançois Fleuret <francois@fleuret.org>
Fri, 7 Apr 2023 12:05:21 +0000 (14:05 +0200)
committerFrançois Fleuret <francois@fleuret.org>
Fri, 7 Apr 2023 12:05:21 +0000 (14:05 +0200)
beaver.py

index 6ed9dd2..6e1eaf4 100755 (executable)
--- a/beaver.py
+++ b/beaver.py
@@ -245,11 +245,14 @@ def oneshot(model, learning_rate_scheduler, task):
         -1, task.height, task.width
     )
     mazes = mazes[:, : task.height * task.width].reshape(-1, task.height, task.width)
-    # targets = targets.reshape(-1, task.height, task.width)
+    paths = task.test_input[:32, task.height * task.width :].reshape(
+        -1, task.height, task.width
+    )
     filename = f"oneshot.png"
     maze.save_image(
         os.path.join(args.result_dir, filename),
         mazes=mazes,
+        target_paths=paths,
         score_paths=proba_path,
         # score_truth=targets,
     )