Skip to content

Commit cd06c04

Browse files
committed
update readme and example.ipynb
1 parent 0669b5a commit cd06c04

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is a repository for the following paper:
44

5-
Yonetani, Taniai, Barekatain, Nishimura, Kanezaki, "Path Planning using Neural A\* Search", ICML, 2021 [[paper]](https://arxiv.org/abs/2009.07476) [[project page]](https://omron-sinicx.github.io/neural-astar/)
5+
Ryo Yonetani*, Tatsunori Taniai*, Mohammadamin Barekatain, Mai Nishimura, Asako Kanezaki, "Path Planning using Neural A\* Search", ICML, 2021 [[paper]](https://arxiv.org/abs/2009.07476) [[project page]](https://omron-sinicx.github.io/neural-astar/)
66

77
## TL;DR
88

example.ipynb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"id": "5c38c3d8-b2af-41fd-ba2b-8d482b540535",
66
"metadata": {},
77
"source": [
8-
"### (optional) Install Neural A* on Colab"
8+
"### (Optional) Install Neural A* on Colab\n",
9+
"\n",
10+
"We highly recommend the use of GPUs for faster training/planning."
911
]
1012
},
1113
{
@@ -44,7 +46,6 @@
4446
"metadata": {},
4547
"outputs": [],
4648
"source": [
47-
"import numpy as np\n",
4849
"import matplotlib.pyplot as plt\n",
4950
"import torch\n",
5051
"from tqdm import tqdm\n",
@@ -64,7 +65,7 @@
6465
"outputs": [],
6566
"source": [
6667
"neural_astar = NeuralAstar(encoder_arch='CNN').to(device)\n",
67-
"neural_astar.load_state_dict(torch.load(\"data/cnn_mazes.pt\"))\n",
68+
"neural_astar.load_state_dict(torch.load(\"data/cnn_mazes.pt\", map_location=torch.device(device)))\n",
6869
"\n",
6970
"vanilla_astar = VanillaAstar().to(device)"
7071
]
@@ -87,7 +88,7 @@
8788
"name": "stderr",
8889
"output_type": "stream",
8990
"text": [
90-
"100%|██████████| 5/5 [00:04<00:00, 1.24it/s]\n"
91+
"100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 5/5 [00:17<00:00, 3.55s/it]\n"
9192
]
9293
},
9394
{
@@ -442,7 +443,7 @@
442443
],
443444
"metadata": {
444445
"kernelspec": {
445-
"display_name": "Python 3",
446+
"display_name": "Python 3 (ipykernel)",
446447
"language": "python",
447448
"name": "python3"
448449
},
@@ -456,7 +457,7 @@
456457
"name": "python",
457458
"nbconvert_exporter": "python",
458459
"pygments_lexer": "ipython3",
459-
"version": "3.7.10"
460+
"version": "3.9.0"
460461
}
461462
},
462463
"nbformat": 4,

0 commit comments

Comments
 (0)