Skip to content

Commit 3283e0f

Browse files
author
Shivani Pathak
committed
updated nbk
1 parent e30ecd2 commit 3283e0f

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

samples/04_gis_analysts_data_scientists/generating_lst_from_multispectral_imagery_using_pix2pix.ipynb

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
" * [Save the model](#Save-the-model)\n",
3030
" * [Compute evaluation metrics](#Compute-evaluation-metrics)\n",
3131
"* [Model inferencing](#Model-inferencing)\n",
32-
" * [Generate raster using classify pixels using deep learning tool](#Generate-raster-using-classify-pixels-using-deep-learning-tool)\n",
3332
"* [Results visualization](#1)\n",
3433
"* [Conclusion](#Conclusion)"
3534
]
@@ -238,7 +237,7 @@
238237
"cell_type": "markdown",
239238
"metadata": {},
240239
"source": [
241-
"Inside the exported data folder, the 'Images' and 'Images2' folders contain all of the image tiles from the two domains exported from `lansat_composite_raster` and `lst_raster` respectively."
240+
"Inside the exported data folder, the 'Images' and 'Images2' folders contain all of the image tiles from the two domains exported from `landsat_composite_raster` and `lst_raster` respectively."
242241
]
243242
},
244243
{
@@ -356,7 +355,7 @@
356355
},
357356
{
358357
"cell_type": "code",
359-
"execution_count": 81,
358+
"execution_count": 10,
360359
"metadata": {},
361360
"outputs": [
362361
{
@@ -385,7 +384,7 @@
385384
},
386385
{
387386
"cell_type": "code",
388-
"execution_count": 82,
387+
"execution_count": 11,
389388
"metadata": {},
390389
"outputs": [],
391390
"source": [
@@ -408,7 +407,7 @@
408407
},
409408
{
410409
"cell_type": "code",
411-
"execution_count": 8,
410+
"execution_count": 12,
412411
"metadata": {
413412
"scrolled": true
414413
},
@@ -431,7 +430,7 @@
431430
"6.309573444801929e-05"
432431
]
433432
},
434-
"execution_count": 8,
433+
"execution_count": 12,
435434
"metadata": {},
436435
"output_type": "execute_result"
437436
}
@@ -457,7 +456,7 @@
457456
},
458457
{
459458
"cell_type": "code",
460-
"execution_count": 9,
459+
"execution_count": 13,
461460
"metadata": {
462461
"scrolled": false
463462
},
@@ -788,7 +787,7 @@
788787
},
789788
{
790789
"cell_type": "code",
791-
"execution_count": 85,
790+
"execution_count": 14,
792791
"metadata": {
793792
"scrolled": false
794793
},
@@ -797,22 +796,22 @@
797796
"name": "stdout",
798797
"output_type": "stream",
799798
"text": [
800-
"Published DLPK Item Id: 7d9343e75754476292389a8006b782ed\n"
799+
"Published DLPK Item Id: a94c729d87774b5e92a25d344e25364f\n"
801800
]
802801
},
803802
{
804803
"data": {
805804
"text/plain": [
806-
"WindowsPath('D:/2021/LST_crop/final/generating_lst_from_multispectral_imagery_using_pix2pix/models/pix2pix_lst_30e_f')"
805+
"WindowsPath('C:/Users/shi10484/AppData/Local/Temp/models/pix2pix_model')"
807806
]
808807
},
809-
"execution_count": 85,
808+
"execution_count": 14,
810809
"metadata": {},
811810
"output_type": "execute_result"
812811
}
813812
],
814813
"source": [
815-
"model.save(\"pix2pix_lst_30e_f\", publish=True, overwrite=True)"
814+
"model.save(\"pix2pix_model\", publish=True, overwrite=True)"
816815
]
817816
},
818817
{
@@ -831,7 +830,7 @@
831830
},
832831
{
833832
"cell_type": "code",
834-
"execution_count": 21,
833+
"execution_count": 15,
835834
"metadata": {
836835
"scrolled": false
837836
},
@@ -873,7 +872,7 @@
873872
},
874873
{
875874
"cell_type": "code",
876-
"execution_count": 22,
875+
"execution_count": 16,
877876
"metadata": {},
878877
"outputs": [
879878
{
@@ -882,7 +881,7 @@
882881
"{'PSNR': '2.0965e+01', 'SSIM': '9.4536e-01'}"
883882
]
884883
},
885-
"execution_count": 22,
884+
"execution_count": 16,
886885
"metadata": {},
887886
"output_type": "execute_result"
888887
}
@@ -907,40 +906,40 @@
907906
},
908907
{
909908
"cell_type": "code",
910-
"execution_count": 110,
909+
"execution_count": 17,
911910
"metadata": {},
912911
"outputs": [
913912
{
914913
"data": {
915914
"text/html": [
916915
"<div class=\"item_container\" style=\"height: auto; overflow: hidden; border: 1px solid #cfcfcf; border-radius: 2px; background: #f6fafa; line-height: 1.21429em; padding: 10px;\">\n",
917916
" <div class=\"item_left\" style=\"width: 210px; float: left;\">\n",
918-
" <a href='https://geosaurus.maps.arcgis.com/home/item.html?id=7d9343e75754476292389a8006b782ed' target='_blank'>\n",
917+
" <a href='https://geosaurus.maps.arcgis.com/home/item.html?id=a94c729d87774b5e92a25d344e25364f' target='_blank'>\n",
919918
" <img src='http://static.arcgis.com/images/desktopapp.png' class=\"itemThumbnail\">\n",
920919
" </a>\n",
921920
" </div>\n",
922921
"\n",
923922
" <div class=\"item_right\" style=\"float: none; width: auto; overflow: hidden;\">\n",
924-
" <a href='https://geosaurus.maps.arcgis.com/home/item.html?id=7d9343e75754476292389a8006b782ed' target='_blank'><b>pix2pix_lst_30e_f</b>\n",
923+
" <a href='https://geosaurus.maps.arcgis.com/home/item.html?id=a94c729d87774b5e92a25d344e25364f' target='_blank'><b>pix2pix_model</b>\n",
925924
" </a>\n",
926-
" <br/><img src='https://geosaurus.maps.arcgis.com/home/js/jsapi/esri/css/images/item_type_icons/layers16.png' style=\"vertical-align:middle;\">Deep Learning Package by arcgis_python\n",
927-
" <br/>Last Modified: June 09, 2022\n",
925+
" <br/><img src='https://geosaurus.maps.arcgis.com/home/js/jsapi/esri/css/images/item_type_icons/layers16.png' style=\"vertical-align:middle;\">Deep Learning Package by api_data_owner\n",
926+
" <br/>Last Modified: June 20, 2022\n",
928927
" <br/>0 comments, 0 views\n",
929928
" </div>\n",
930929
" </div>\n",
931930
" "
932931
],
933932
"text/plain": [
934-
"<Item title:\"pix2pix_lst_30e_f\" type:Deep Learning Package owner:arcgis_python>"
933+
"<Item title:\"pix2pix_model\" type:Deep Learning Package owner:api_data_owner>"
935934
]
936935
},
937-
"execution_count": 110,
936+
"execution_count": 17,
938937
"metadata": {},
939938
"output_type": "execute_result"
940939
}
941940
],
942941
"source": [
943-
"model_for_inferencing = gis.content.get('7d9343e75754476292389a8006b782ed')\n",
942+
"model_for_inferencing = gis.content.get('a94c729d87774b5e92a25d344e25364f')\n",
944943
"model_for_inferencing"
945944
]
946945
},
@@ -955,7 +954,8 @@
955954
"cell_type": "markdown",
956955
"metadata": {},
957956
"source": [
958-
"`with arcpy.EnvManager(processorType=\"GPU\"): out_classified_raster = arcpy.ia.ClassifyPixelsUsingDeepLearning(\"composite_raster_for_inferencing\", r\"C:\\path\\to\\model.dlpk\", \"padding 64;batch_size 8;predict_background True; tile_size 224\", \"PROCESS_AS_MOSAICKED_IMAGE\", None); out_classified_raster.save(r\"C:\\sample\\sample.gdb\\predicted_lst\")`"
957+
"`with arcpy.EnvManager(processorType=\"GPU\"): \n",
958+
"out_classified_raster = arcpy.ia.ClassifyPixelsUsingDeepLearning(\"composite_raster_for_inferencing\", r\"C:\\path\\to\\model.dlpk\", \"padding 64;batch_size 8;predict_background True; tile_size 224\", \"PROCESS_AS_MOSAICKED_IMAGE\", None); out_classified_raster.save(r\"C:\\sample\\sample.gdb\\predicted_lst\")`"
959959
]
960960
},
961961
{
@@ -974,7 +974,7 @@
974974
},
975975
{
976976
"cell_type": "code",
977-
"execution_count": 98,
977+
"execution_count": 18,
978978
"metadata": {
979979
"scrolled": true
980980
},
@@ -1003,7 +1003,7 @@
10031003
"<Item title:\"apr_lst_ras\" type:Imagery Layer owner:demos_deldev>"
10041004
]
10051005
},
1006-
"execution_count": 98,
1006+
"execution_count": 18,
10071007
"metadata": {},
10081008
"output_type": "execute_result"
10091009
}
@@ -1015,7 +1015,7 @@
10151015
},
10161016
{
10171017
"cell_type": "code",
1018-
"execution_count": 99,
1018+
"execution_count": 19,
10191019
"metadata": {},
10201020
"outputs": [],
10211021
"source": [
@@ -1030,7 +1030,7 @@
10301030
},
10311031
{
10321032
"cell_type": "code",
1033-
"execution_count": 100,
1033+
"execution_count": 20,
10341034
"metadata": {
10351035
"scrolled": true
10361036
},
@@ -1059,7 +1059,7 @@
10591059
"<Item title:\"july_lst_ras\" type:Imagery Layer owner:demos_deldev>"
10601060
]
10611061
},
1062-
"execution_count": 100,
1062+
"execution_count": 20,
10631063
"metadata": {},
10641064
"output_type": "execute_result"
10651065
}
@@ -1071,7 +1071,7 @@
10711071
},
10721072
{
10731073
"cell_type": "code",
1074-
"execution_count": 101,
1074+
"execution_count": 21,
10751075
"metadata": {},
10761076
"outputs": [],
10771077
"source": [
@@ -1093,7 +1093,7 @@
10931093
},
10941094
{
10951095
"cell_type": "code",
1096-
"execution_count": 102,
1096+
"execution_count": 22,
10971097
"metadata": {},
10981098
"outputs": [],
10991099
"source": [
@@ -1117,7 +1117,7 @@
11171117
},
11181118
{
11191119
"cell_type": "code",
1120-
"execution_count": 103,
1120+
"execution_count": 23,
11211121
"metadata": {},
11221122
"outputs": [],
11231123
"source": [
@@ -1127,7 +1127,7 @@
11271127
},
11281128
{
11291129
"cell_type": "code",
1130-
"execution_count": 104,
1130+
"execution_count": 24,
11311131
"metadata": {},
11321132
"outputs": [],
11331133
"source": [
@@ -1143,7 +1143,7 @@
11431143
},
11441144
{
11451145
"cell_type": "code",
1146-
"execution_count": 105,
1146+
"execution_count": 25,
11471147
"metadata": {},
11481148
"outputs": [],
11491149
"source": [
@@ -1159,7 +1159,7 @@
11591159
},
11601160
{
11611161
"cell_type": "code",
1162-
"execution_count": 106,
1162+
"execution_count": 26,
11631163
"metadata": {},
11641164
"outputs": [],
11651165
"source": [
@@ -1188,7 +1188,7 @@
11881188
},
11891189
{
11901190
"cell_type": "code",
1191-
"execution_count": null,
1191+
"execution_count": 27,
11921192
"metadata": {},
11931193
"outputs": [],
11941194
"source": [
@@ -1204,7 +1204,7 @@
12041204
},
12051205
{
12061206
"cell_type": "code",
1207-
"execution_count": 109,
1207+
"execution_count": 28,
12081208
"metadata": {},
12091209
"outputs": [],
12101210
"source": [

0 commit comments

Comments
 (0)