Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SNN-PCN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FOX_PUB
SNN-PCN
Compare revisions
f30d8c8b74023d302de4001eeb53b0a9807f26bc to 05f37dd3484224377246500ad7c0dd692220ab84
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
fox/snn-pcn
Select target project
No results found
05f37dd3484224377246500ad7c0dd692220ab84
Select Git revision
Branches
master
1 result
Swap
Target
fox/snn-pcn
Select target project
fox/snn-pcn
1 result
f30d8c8b74023d302de4001eeb53b0a9807f26bc
Select Git revision
Branches
master
1 result
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Add Error handler
· a3dc399c
Gaspard Goupy
authored
1 year ago
a3dc399c
Update README
· 05f37dd3
Gaspard Goupy
authored
1 year ago
05f37dd3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+2
-2
2 additions, 2 deletions
README.md
scripts/run.py
+4
-1
4 additions, 1 deletion
scripts/run.py
with
6 additions
and
3 deletions
README.md
View file @
05f37dd3
...
...
@@ -87,9 +87,9 @@ python3 run.py <INPUT_DIR> <OUTPUT_DIR> <CONFIG_CSNN> <CONFIG_READOUT> [--seed=0
```
The configuration files are in JSON format. Examples are provided in
`scripts/config/`
.
For example, to train
and test
the SNN on MNIST:
For example, to train the SNN on MNIST
with
`S2-STDP+PCN`
:
```
python3 run.py ../datasets/mnist/with-val/ logs/mnist/example/ config/MNIST/csnn-
3
/csnn.json config/MNIST/csnn-
3/s
stdp.json
python3 run.py ../datasets/mnist/with-val/ logs/mnist/example/ config/MNIST/csnn-
128
/csnn.json config/MNIST/csnn-
128/pcn-s2
stdp.json
```
### Run the Readout only
...
...
This diff is collapsed.
Click to expand it.
scripts/run.py
View file @
05f37dd3
...
...
@@ -69,4 +69,7 @@ if __name__ == "__main__":
if
os
.
path
.
isdir
(
output_dir
):
raise
RuntimeError
(
"
Output directory already exists. Aborting...
"
)
# Start run: vroum vroum
run
(
input_dir
,
config_path_csnn
,
config_path_readout
,
output_dir
,
args
.
seed
)
\ No newline at end of file
try
:
run
(
input_dir
,
config_path_csnn
,
config_path_readout
,
output_dir
,
args
.
seed
)
except
Exception
as
e
:
print
(
"
RUNNING ERROR:
\n
"
,
e
.
output
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.