From: François Fleuret Date: Fri, 7 Apr 2023 12:05:21 +0000 (+0200) Subject: Update X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=519b5419b30de82828a41b620e76d993a70423e9;p=beaver.git Update --- diff --git a/beaver.py b/beaver.py index 6ed9dd2..6e1eaf4 100755 --- 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, )