Skip to content

Commit 0be40cd

Browse files
author
Neha Sharma
committed
update mussel farms notebook
1 parent d72134d commit 0be40cd

File tree

1 file changed

+50
-42
lines changed

1 file changed

+50
-42
lines changed

samples/04_gis_analysts_data_scientists/detecting_mussel_farms_using_deep_learning.ipynb

Lines changed: 50 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -111,28 +111,14 @@
111111
"## Export training data"
112112
]
113113
},
114-
{
115-
"cell_type": "markdown",
116-
"id": "976969ad-2fda-4280-9781-38eb04e2d9ff",
117-
"metadata": {},
118-
"source": [
119-
"### Necessary imports"
120-
]
121-
},
122114
{
123115
"cell_type": "code",
124116
"execution_count": 1,
125117
"id": "ad42be61",
126118
"metadata": {},
127119
"outputs": [],
128120
"source": [
129-
"import os\n",
130-
"import glob\n",
131-
"import zipfile\n",
132-
"from pathlib import Path\n",
133-
"\n",
134-
"from arcgis.gis import GIS\n",
135-
"from arcgis.learn import prepare_data, MMDetection"
121+
"from arcgis.gis import GIS"
136122
]
137123
},
138124
{
@@ -272,6 +258,28 @@
272258
"## Train the model"
273259
]
274260
},
261+
{
262+
"cell_type": "markdown",
263+
"id": "3f1e06f1-07d5-46f7-a11a-f039df91bc27",
264+
"metadata": {},
265+
"source": [
266+
"### Necessary imports"
267+
]
268+
},
269+
{
270+
"cell_type": "code",
271+
"execution_count": 5,
272+
"id": "31855a8d-f160-4ec2-83ae-7e948edaca3b",
273+
"metadata": {},
274+
"outputs": [],
275+
"source": [
276+
"import os\n",
277+
"import glob\n",
278+
"import zipfile\n",
279+
"from pathlib import Path\n",
280+
"from arcgis.learn import prepare_data, MMDetection"
281+
]
282+
},
275283
{
276284
"cell_type": "markdown",
277285
"id": "e6384531",
@@ -290,7 +298,7 @@
290298
},
291299
{
292300
"cell_type": "code",
293-
"execution_count": 5,
301+
"execution_count": 6,
294302
"id": "d8eefa5e",
295303
"metadata": {
296304
"scrolled": true
@@ -320,7 +328,7 @@
320328
"<Item title:\"musselfarm_detection_training_data\" type:Image Collection owner:api_data_owner>"
321329
]
322330
},
323-
"execution_count": 5,
331+
"execution_count": 6,
324332
"metadata": {},
325333
"output_type": "execute_result"
326334
}
@@ -332,7 +340,7 @@
332340
},
333341
{
334342
"cell_type": "code",
335-
"execution_count": 6,
343+
"execution_count": 7,
336344
"id": "42dffd87",
337345
"metadata": {},
338346
"outputs": [],
@@ -342,7 +350,7 @@
342350
},
343351
{
344352
"cell_type": "code",
345-
"execution_count": 7,
353+
"execution_count": 8,
346354
"id": "df888232",
347355
"metadata": {},
348356
"outputs": [],
@@ -354,7 +362,7 @@
354362
},
355363
{
356364
"cell_type": "code",
357-
"execution_count": 8,
365+
"execution_count": 9,
358366
"id": "45a82139",
359367
"metadata": {},
360368
"outputs": [],
@@ -378,7 +386,7 @@
378386
},
379387
{
380388
"cell_type": "code",
381-
"execution_count": 9,
389+
"execution_count": 10,
382390
"id": "09d7e4a6",
383391
"metadata": {},
384392
"outputs": [],
@@ -398,7 +406,7 @@
398406
},
399407
{
400408
"cell_type": "code",
401-
"execution_count": 10,
409+
"execution_count": 11,
402410
"id": "106b22dc",
403411
"metadata": {},
404412
"outputs": [
@@ -435,7 +443,7 @@
435443
},
436444
{
437445
"cell_type": "code",
438-
"execution_count": 11,
446+
"execution_count": 12,
439447
"id": "596352f8",
440448
"metadata": {},
441449
"outputs": [
@@ -468,7 +476,7 @@
468476
" 'vfnet']"
469477
]
470478
},
471-
"execution_count": 11,
479+
"execution_count": 12,
472480
"metadata": {},
473481
"output_type": "execute_result"
474482
}
@@ -479,7 +487,7 @@
479487
},
480488
{
481489
"cell_type": "code",
482-
"execution_count": 12,
490+
"execution_count": 13,
483491
"id": "8cc9efa5",
484492
"metadata": {},
485493
"outputs": [],
@@ -505,7 +513,7 @@
505513
},
506514
{
507515
"cell_type": "code",
508-
"execution_count": 13,
516+
"execution_count": 14,
509517
"id": "c73f075f",
510518
"metadata": {},
511519
"outputs": [
@@ -525,7 +533,7 @@
525533
"4.365158322401661e-05"
526534
]
527535
},
528-
"execution_count": 13,
536+
"execution_count": 14,
529537
"metadata": {},
530538
"output_type": "execute_result"
531539
}
@@ -553,7 +561,7 @@
553561
},
554562
{
555563
"cell_type": "code",
556-
"execution_count": 14,
564+
"execution_count": 15,
557565
"id": "4b001851",
558566
"metadata": {
559567
"scrolled": true
@@ -684,7 +692,7 @@
684692
},
685693
{
686694
"cell_type": "code",
687-
"execution_count": 15,
695+
"execution_count": 16,
688696
"id": "df83ba74",
689697
"metadata": {
690698
"scrolled": true
@@ -723,7 +731,7 @@
723731
},
724732
{
725733
"cell_type": "code",
726-
"execution_count": 16,
734+
"execution_count": 17,
727735
"id": "4ac11fea",
728736
"metadata": {},
729737
"outputs": [
@@ -762,7 +770,7 @@
762770
"{'MusselFarm': 0.8913268297731172}"
763771
]
764772
},
765-
"execution_count": 16,
773+
"execution_count": 17,
766774
"metadata": {},
767775
"output_type": "execute_result"
768776
}
@@ -791,7 +799,7 @@
791799
},
792800
{
793801
"cell_type": "code",
794-
"execution_count": 17,
802+
"execution_count": 18,
795803
"id": "55fb85a1",
796804
"metadata": {},
797805
"outputs": [
@@ -808,7 +816,7 @@
808816
"WindowsPath('~/AppData/Local/Temp/musselfarm_detection_training_data/models/musselfarms_mmd_dynamic_rcnn_10ep')"
809817
]
810818
},
811-
"execution_count": 17,
819+
"execution_count": 18,
812820
"metadata": {},
813821
"output_type": "execute_result"
814822
}
@@ -835,7 +843,7 @@
835843
},
836844
{
837845
"cell_type": "code",
838-
"execution_count": 18,
846+
"execution_count": 19,
839847
"id": "f4b0f8ac",
840848
"metadata": {},
841849
"outputs": [
@@ -863,7 +871,7 @@
863871
"<Item title:\"mussel_farm_detection_test_imagery\" type:Tiled Imagery Layer owner:demos_deldev>"
864872
]
865873
},
866-
"execution_count": 18,
874+
"execution_count": 19,
867875
"metadata": {},
868876
"output_type": "execute_result"
869877
}
@@ -892,7 +900,7 @@
892900
},
893901
{
894902
"cell_type": "code",
895-
"execution_count": 19,
903+
"execution_count": 20,
896904
"id": "1aa22a12",
897905
"metadata": {},
898906
"outputs": [
@@ -920,7 +928,7 @@
920928
"<Item title:\"Model Builder for Mussel Farm Detection\" type:Geoprocessing Sample owner:api_data_owner>"
921929
]
922930
},
923-
"execution_count": 19,
931+
"execution_count": 20,
924932
"metadata": {},
925933
"output_type": "execute_result"
926934
}
@@ -999,7 +1007,7 @@
9991007
},
10001008
{
10011009
"cell_type": "code",
1002-
"execution_count": 20,
1010+
"execution_count": 21,
10031011
"id": "ca913fd8",
10041012
"metadata": {},
10051013
"outputs": [
@@ -1027,7 +1035,7 @@
10271035
"<Item title:\"musselfarms_detected\" type:Feature Layer Collection owner:demos_deldev>"
10281036
]
10291037
},
1030-
"execution_count": 20,
1038+
"execution_count": 21,
10311039
"metadata": {},
10321040
"output_type": "execute_result"
10331041
}
@@ -1040,7 +1048,7 @@
10401048
},
10411049
{
10421050
"cell_type": "code",
1043-
"execution_count": 21,
1051+
"execution_count": 22,
10441052
"id": "b9287d0a",
10451053
"metadata": {},
10461054
"outputs": [
@@ -1068,7 +1076,7 @@
10681076
"<Item title:\"mussel_farm_detection\" type:Web Map owner:demos_deldev>"
10691077
]
10701078
},
1071-
"execution_count": 21,
1079+
"execution_count": 22,
10721080
"metadata": {},
10731081
"output_type": "execute_result"
10741082
}
@@ -1081,7 +1089,7 @@
10811089
},
10821090
{
10831091
"cell_type": "code",
1084-
"execution_count": 22,
1092+
"execution_count": 23,
10851093
"id": "529f399b",
10861094
"metadata": {
10871095
"scrolled": true

0 commit comments

Comments
 (0)