Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PilotNet LIF inference and Benchmarking tutorials #119

Merged
merged 33 commits into from
Oct 25, 2022
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
4328af7
Merge branch 'lava-nc:main' into main
bamsumit May 18, 2022
1789ef9
Merge branch 'main' of github.com:bamsumit/lava-dl into main
bamsumit Jul 26, 2022
3f62930
Modification for dvs gesture
bamsumit Aug 16, 2022
8f9bc15
Updated Oxford notebook to api changes
bamsumit Aug 18, 2022
8201d02
Updated Oxford notebook to run on Loihi
bamsumit Aug 18, 2022
04832c9
Added an initial version of DVS Gesture
bamsumit Aug 18, 2022
f2cbe2c
PilotNet on Loihi2 basics working.
bamsumit Sep 11, 2022
f704d51
Working PN SDNN notebook
bamsumit Sep 13, 2022
790f550
Added dependent images
bamsumit Sep 13, 2022
6a0e70b
PN SDNN notebook finalizing
bamsumit Sep 21, 2022
f3479b0
Oxford cleanup
bamsumit Sep 22, 2022
bf82bf2
Reverted minor fixes
bamsumit Sep 22, 2022
a4596c2
Merge branch 'main' into tutorials
bamsumit Sep 22, 2022
da6b6d8
Linting fixes
bamsumit Sep 22, 2022
d25de17
Updated poetry lock
bamsumit Sep 22, 2022
b11c2cd
Updated unittest skip for loihi
bamsumit Sep 22, 2022
c95c266
Updated poetry lock
bamsumit Sep 22, 2022
134f68a
Merge branch 'main' into tutorials
bamsumit Sep 22, 2022
6a9471d
Updated illustations and plotting
bamsumit Sep 22, 2022
b717743
Typo and fixes from Mathis
bamsumit Sep 22, 2022
12dcd19
PilotNet LIF notebook ready
bamsumit Oct 12, 2022
caf6d37
added utils
bamsumit Oct 12, 2022
c7e8771
Added benchmarking notebook
bamsumit Oct 12, 2022
d24200a
Update benchmarking notebook
bamsumit Oct 12, 2022
12f0402
Profiling illustration added
bamsumit Oct 12, 2022
f49e18b
SDNN profiling added
bamsumit Oct 12, 2022
d3ad95a
notebook update
bamsumit Oct 24, 2022
211bec8
Updated tutorial notebooks
bamsumit Oct 24, 2022
529ee9f
Updated merge conflicts
bamsumit Oct 24, 2022
5284527
Removed unnecessary comments
bamsumit Oct 24, 2022
3211281
Updated wrong comment info
bamsumit Oct 24, 2022
7800ed5
Updated wrong comment info
bamsumit Oct 24, 2022
810c034
Merge branch 'main' into tutorials
bamsumit Oct 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tutorials/lava/lib/dl/netx/oxford/run.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
],
"source": [
"from lava.utils.system import Loihi2\n",
"Loihi2.preferred_partition = 'kp_stack'\n",
"Loihi2.preferred_partition = 'oheogulch'\n",
"loihi2_is_available = Loihi2.is_loihi2_available\n",
"\n",
"if loihi2_is_available:\n",
Expand Down
657 changes: 657 additions & 0 deletions tutorials/lava/lib/dl/netx/pilotnet_sdnn/benchmark.ipynb

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions tutorials/lava/lib/dl/netx/pilotnet_sdnn/run.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Running on kp_stack\n"
"Running on oheogulch\n"
]
}
],
"source": [
"from lava.utils.system import Loihi2\n",
"Loihi2.preferred_partition = 'kp_stack'\n",
"Loihi2.preferred_partition = 'oheogulch'\n",
"loihi2_is_available = Loihi2.is_loihi2_available\n",
"\n",
"if loihi2_is_available:\n",
Expand Down Expand Up @@ -131,7 +131,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"There are 9 layers in network:\n",
"There are 9 layers in the network:\n",
"Conv : Process_3 , shape : (99, 32, 24)\n",
"Conv : Process_6 , shape : (49, 15, 36)\n",
"Conv : Process_9 , shape : (24, 7, 48)\n",
Expand Down Expand Up @@ -378,7 +378,7 @@
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x7f1f4fc03b20>"
"<matplotlib.legend.Legend at 0x7f7229f70b50>"
]
},
"execution_count": 13,
Expand Down
643 changes: 643 additions & 0 deletions tutorials/lava/lib/dl/netx/pilotnet_snn/benchmark.ipynb

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions tutorials/lava/lib/dl/netx/pilotnet_snn/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ def __getitem__(self, index: int) -> Tuple[np.ndarray, float]:
+ float(self.samples[index + 1][1])
) / 2
gt_val = ground_truth * np.pi / 180
print(f'\rSample: {index}', end='')
return image, gt_val
return image.reshape(image.shape + (1,)), gt_val

def __len__(self) -> int:
return len(self.samples)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading