Skip to content

Commit bb8218f

Browse files
Add pretrained model download step to example notebooks (#20)
* Initial plan * Add pretrained model download cells to example notebooks 01-07 Co-authored-by: lappalainenj <34949352+lappalainenj@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: lappalainenj <34949352+lappalainenj@users.noreply.github.com>
1 parent 0f59d6c commit bb8218f

7 files changed

Lines changed: 227 additions & 17 deletions

examples/01_flyvision_connectome.ipynb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,36 @@
108108
" !pip install -e .[examples]"
109109
]
110110
},
111+
{
112+
"cell_type": "markdown",
113+
"id": "94376496",
114+
"metadata": {
115+
"tags": [
116+
"hide"
117+
]
118+
},
119+
"source": [
120+
"**Download pretrained models**\n",
121+
"\n",
122+
"Running the code block below will download the pretrained models needed for this notebook."
123+
]
124+
},
125+
{
126+
"cell_type": "code",
127+
"execution_count": null,
128+
"id": "b5337bfa",
129+
"metadata": {
130+
"cellView": "form",
131+
"tags": [
132+
"hide"
133+
]
134+
},
135+
"outputs": [],
136+
"source": [
137+
"# @markdown **Download pretrained models**\n",
138+
"!flyvis download-pretrained"
139+
]
140+
},
111141
{
112142
"cell_type": "markdown",
113143
"id": "899b7f6e",

examples/02_flyvision_optic_flow_task.ipynb

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,36 @@
109109
" !pip install -e .[examples]"
110110
]
111111
},
112+
{
113+
"cell_type": "markdown",
114+
"id": "2d098165",
115+
"metadata": {
116+
"tags": [
117+
"hide"
118+
]
119+
},
120+
"source": [
121+
"**Download pretrained models**\n",
122+
"\n",
123+
"Running the code block below will download the pretrained models needed for this notebook."
124+
]
125+
},
126+
{
127+
"cell_type": "code",
128+
"execution_count": null,
129+
"id": "f2260977",
130+
"metadata": {
131+
"cellView": "form",
132+
"tags": [
133+
"hide"
134+
]
135+
},
136+
"outputs": [],
137+
"source": [
138+
"# @markdown **Download pretrained models**\n",
139+
"!flyvis download-pretrained"
140+
]
141+
},
112142
{
113143
"cell_type": "markdown",
114144
"id": "d6e57181",
@@ -1887,7 +1917,7 @@
18871917
"description": "",
18881918
"description_allow_html": false,
18891919
"layout": "IPY_MODEL_9c5b27045cae43fdaeaab6818be0c798",
1890-
"placeholder": "",
1920+
"placeholder": "\u200b",
18911921
"style": "IPY_MODEL_14936f9c260b4802b0756c15436e6b92",
18921922
"tabbable": null,
18931923
"tooltip": null,
@@ -1999,7 +2029,7 @@
19992029
"description": "",
20002030
"description_allow_html": false,
20012031
"layout": "IPY_MODEL_8cd53e9b306b443491663dbfe5b2a1a9",
2002-
"placeholder": "",
2032+
"placeholder": "\u200b",
20032033
"style": "IPY_MODEL_159aa73c20d145f2ba32f713f3a3c14d",
20042034
"tabbable": null,
20052035
"tooltip": null,
@@ -2075,7 +2105,7 @@
20752105
"description": "",
20762106
"description_allow_html": false,
20772107
"layout": "IPY_MODEL_7f0cea8f331e4c2c984aabe74c1c4f83",
2078-
"placeholder": "",
2108+
"placeholder": "\u200b",
20792109
"style": "IPY_MODEL_5491c0996f9f49bb810a2e2bb79d9560",
20802110
"tabbable": null,
20812111
"tooltip": null,
@@ -2343,7 +2373,7 @@
23432373
"description": "",
23442374
"description_allow_html": false,
23452375
"layout": "IPY_MODEL_3773b17f16164007b1396a5ab6bd5097",
2346-
"placeholder": "",
2376+
"placeholder": "\u200b",
23472377
"style": "IPY_MODEL_5c3d72509ffa44c3a65551607705c0de",
23482378
"tabbable": null,
23492379
"tooltip": null,

examples/03_flyvision_flash_responses.ipynb

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,36 @@
111111
" !pip install -e .[examples]"
112112
]
113113
},
114+
{
115+
"cell_type": "markdown",
116+
"id": "069f9de4",
117+
"metadata": {
118+
"tags": [
119+
"hide"
120+
]
121+
},
122+
"source": [
123+
"**Download pretrained models**\n",
124+
"\n",
125+
"Running the code block below will download the pretrained models needed for this notebook."
126+
]
127+
},
128+
{
129+
"cell_type": "code",
130+
"execution_count": null,
131+
"id": "102a35f3",
132+
"metadata": {
133+
"cellView": "form",
134+
"tags": [
135+
"hide"
136+
]
137+
},
138+
"outputs": [],
139+
"source": [
140+
"# @markdown **Download pretrained models**\n",
141+
"!flyvis download-pretrained"
142+
]
143+
},
114144
{
115145
"cell_type": "markdown",
116146
"metadata": {
@@ -823,7 +853,7 @@
823853
"description": "",
824854
"description_allow_html": false,
825855
"layout": "IPY_MODEL_3f5f9c5b2d874431ad45cfadafb685c8",
826-
"placeholder": "",
856+
"placeholder": "\u200b",
827857
"style": "IPY_MODEL_a78b5b586dc8471aa441463b84d1d807",
828858
"tabbable": null,
829859
"tooltip": null,
@@ -994,7 +1024,7 @@
9941024
"description": "",
9951025
"description_allow_html": false,
9961026
"layout": "IPY_MODEL_2c46b6ae58704facb18ed897dd80d056",
997-
"placeholder": "",
1027+
"placeholder": "\u200b",
9981028
"style": "IPY_MODEL_10d252043c444e7b8cd88111941f16f4",
9991029
"tabbable": null,
10001030
"tooltip": null,

examples/04_flyvision_moving_edge_responses.ipynb

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,36 @@
109109
" !pip install -e .[examples]"
110110
]
111111
},
112+
{
113+
"cell_type": "markdown",
114+
"id": "f1778a02",
115+
"metadata": {
116+
"tags": [
117+
"hide"
118+
]
119+
},
120+
"source": [
121+
"**Download pretrained models**\n",
122+
"\n",
123+
"Running the code block below will download the pretrained models needed for this notebook."
124+
]
125+
},
126+
{
127+
"cell_type": "code",
128+
"execution_count": null,
129+
"id": "fb65fc39",
130+
"metadata": {
131+
"cellView": "form",
132+
"tags": [
133+
"hide"
134+
]
135+
},
136+
"outputs": [],
137+
"source": [
138+
"# @markdown **Download pretrained models**\n",
139+
"!flyvis download-pretrained"
140+
]
141+
},
112142
{
113143
"cell_type": "markdown",
114144
"metadata": {
@@ -1089,7 +1119,7 @@
10891119
"description": "",
10901120
"description_allow_html": false,
10911121
"layout": "IPY_MODEL_e205e4e08ab64cf6801cc4a0d68224c8",
1092-
"placeholder": "",
1122+
"placeholder": "\u200b",
10931123
"style": "IPY_MODEL_6ae6eec453d247b4b5991670378c8f2d",
10941124
"tabbable": null,
10951125
"tooltip": null,
@@ -1324,7 +1354,7 @@
13241354
"description": "",
13251355
"description_allow_html": false,
13261356
"layout": "IPY_MODEL_e99a82e9ad0d41cb9c660b6634a2b785",
1327-
"placeholder": "",
1357+
"placeholder": "\u200b",
13281358
"style": "IPY_MODEL_8bab5e8d747e4f1f9effd3d2d9227ed2",
13291359
"tabbable": null,
13301360
"tooltip": null,
@@ -1434,7 +1464,7 @@
14341464
"description": "",
14351465
"description_allow_html": false,
14361466
"layout": "IPY_MODEL_f56d130211d64efca164a786d8173775",
1437-
"placeholder": "",
1467+
"placeholder": "\u200b",
14381468
"style": "IPY_MODEL_24de005189d44a10bb3501cd3fa3b8ef",
14391469
"tabbable": null,
14401470
"tooltip": null,
@@ -1457,7 +1487,7 @@
14571487
"description": "",
14581488
"description_allow_html": false,
14591489
"layout": "IPY_MODEL_9170dcf8c84e4271aefb78bb06162329",
1460-
"placeholder": "",
1490+
"placeholder": "\u200b",
14611491
"style": "IPY_MODEL_6a23f0be6f7145b08bdc5ae6ce739f9a",
14621492
"tabbable": null,
14631493
"tooltip": null,

examples/05_flyvision_umap_and_clustering_models.ipynb

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,36 @@
107107
" !pip install -e .[examples]"
108108
]
109109
},
110+
{
111+
"cell_type": "markdown",
112+
"id": "23e17381",
113+
"metadata": {
114+
"tags": [
115+
"hide"
116+
]
117+
},
118+
"source": [
119+
"**Download pretrained models**\n",
120+
"\n",
121+
"Running the code block below will download the pretrained models needed for this notebook."
122+
]
123+
},
124+
{
125+
"cell_type": "code",
126+
"execution_count": null,
127+
"id": "bb122ba1",
128+
"metadata": {
129+
"cellView": "form",
130+
"tags": [
131+
"hide"
132+
]
133+
},
134+
"outputs": [],
135+
"source": [
136+
"# @markdown **Download pretrained models**\n",
137+
"!flyvis download-pretrained"
138+
]
139+
},
110140
{
111141
"cell_type": "markdown",
112142
"metadata": {},
@@ -941,7 +971,7 @@
941971
"description": "",
942972
"description_allow_html": false,
943973
"layout": "IPY_MODEL_86ed2280559c40738790ec88dd6f829e",
944-
"placeholder": "",
974+
"placeholder": "\u200b",
945975
"style": "IPY_MODEL_79571b75e3dc4de5856ca9d75fea7e12",
946976
"tabbable": null,
947977
"tooltip": null,
@@ -1006,7 +1036,7 @@
10061036
"description": "",
10071037
"description_allow_html": false,
10081038
"layout": "IPY_MODEL_82a296ff8eda45848f0a3bc4825ecc55",
1009-
"placeholder": "",
1039+
"placeholder": "\u200b",
10101040
"style": "IPY_MODEL_237d3471a40e404da21d434bb990918b",
10111041
"tabbable": null,
10121042
"tooltip": null,

examples/06_flyvision_maximally_excitatory_stimuli.ipynb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,36 @@
108108
" !pip install -e .[examples]"
109109
]
110110
},
111+
{
112+
"cell_type": "markdown",
113+
"id": "fd7f30a8",
114+
"metadata": {
115+
"tags": [
116+
"hide"
117+
]
118+
},
119+
"source": [
120+
"**Download pretrained models**\n",
121+
"\n",
122+
"Running the code block below will download the pretrained models needed for this notebook."
123+
]
124+
},
125+
{
126+
"cell_type": "code",
127+
"execution_count": null,
128+
"id": "03b2b984",
129+
"metadata": {
130+
"cellView": "form",
131+
"tags": [
132+
"hide"
133+
]
134+
},
135+
"outputs": [],
136+
"source": [
137+
"# @markdown **Download pretrained models**\n",
138+
"!flyvis download-pretrained"
139+
]
140+
},
111141
{
112142
"cell_type": "markdown",
113143
"id": "abb48f9d",

0 commit comments

Comments
 (0)