projects
/
beaver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92a2935
)
Update
author
François Fleuret
<francois@fleuret.org>
Fri, 7 Apr 2023 12:05:21 +0000
(14:05 +0200)
committer
François Fleuret
<francois@fleuret.org>
Fri, 7 Apr 2023 12:05:21 +0000
(14:05 +0200)
beaver.py
patch
|
blob
|
history
diff --git
a/beaver.py
b/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,
)