|
29 | 29 | " * [Save the model](#Save-the-model)\n",
|
30 | 30 | " * [Compute evaluation metrics](#Compute-evaluation-metrics)\n",
|
31 | 31 | "* [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", |
33 | 32 | "* [Results visualization](#1)\n",
|
34 | 33 | "* [Conclusion](#Conclusion)"
|
35 | 34 | ]
|
|
238 | 237 | "cell_type": "markdown",
|
239 | 238 | "metadata": {},
|
240 | 239 | "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." |
242 | 241 | ]
|
243 | 242 | },
|
244 | 243 | {
|
|
356 | 355 | },
|
357 | 356 | {
|
358 | 357 | "cell_type": "code",
|
359 |
| - "execution_count": 81, |
| 358 | + "execution_count": 10, |
360 | 359 | "metadata": {},
|
361 | 360 | "outputs": [
|
362 | 361 | {
|
|
385 | 384 | },
|
386 | 385 | {
|
387 | 386 | "cell_type": "code",
|
388 |
| - "execution_count": 82, |
| 387 | + "execution_count": 11, |
389 | 388 | "metadata": {},
|
390 | 389 | "outputs": [],
|
391 | 390 | "source": [
|
|
408 | 407 | },
|
409 | 408 | {
|
410 | 409 | "cell_type": "code",
|
411 |
| - "execution_count": 8, |
| 410 | + "execution_count": 12, |
412 | 411 | "metadata": {
|
413 | 412 | "scrolled": true
|
414 | 413 | },
|
|
431 | 430 | "6.309573444801929e-05"
|
432 | 431 | ]
|
433 | 432 | },
|
434 |
| - "execution_count": 8, |
| 433 | + "execution_count": 12, |
435 | 434 | "metadata": {},
|
436 | 435 | "output_type": "execute_result"
|
437 | 436 | }
|
|
457 | 456 | },
|
458 | 457 | {
|
459 | 458 | "cell_type": "code",
|
460 |
| - "execution_count": 9, |
| 459 | + "execution_count": 13, |
461 | 460 | "metadata": {
|
462 | 461 | "scrolled": false
|
463 | 462 | },
|
|
788 | 787 | },
|
789 | 788 | {
|
790 | 789 | "cell_type": "code",
|
791 |
| - "execution_count": 85, |
| 790 | + "execution_count": 14, |
792 | 791 | "metadata": {
|
793 | 792 | "scrolled": false
|
794 | 793 | },
|
|
797 | 796 | "name": "stdout",
|
798 | 797 | "output_type": "stream",
|
799 | 798 | "text": [
|
800 |
| - "Published DLPK Item Id: 7d9343e75754476292389a8006b782ed\n" |
| 799 | + "Published DLPK Item Id: a94c729d87774b5e92a25d344e25364f\n" |
801 | 800 | ]
|
802 | 801 | },
|
803 | 802 | {
|
804 | 803 | "data": {
|
805 | 804 | "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')" |
807 | 806 | ]
|
808 | 807 | },
|
809 |
| - "execution_count": 85, |
| 808 | + "execution_count": 14, |
810 | 809 | "metadata": {},
|
811 | 810 | "output_type": "execute_result"
|
812 | 811 | }
|
813 | 812 | ],
|
814 | 813 | "source": [
|
815 |
| - "model.save(\"pix2pix_lst_30e_f\", publish=True, overwrite=True)" |
| 814 | + "model.save(\"pix2pix_model\", publish=True, overwrite=True)" |
816 | 815 | ]
|
817 | 816 | },
|
818 | 817 | {
|
|
831 | 830 | },
|
832 | 831 | {
|
833 | 832 | "cell_type": "code",
|
834 |
| - "execution_count": 21, |
| 833 | + "execution_count": 15, |
835 | 834 | "metadata": {
|
836 | 835 | "scrolled": false
|
837 | 836 | },
|
|
873 | 872 | },
|
874 | 873 | {
|
875 | 874 | "cell_type": "code",
|
876 |
| - "execution_count": 22, |
| 875 | + "execution_count": 16, |
877 | 876 | "metadata": {},
|
878 | 877 | "outputs": [
|
879 | 878 | {
|
|
882 | 881 | "{'PSNR': '2.0965e+01', 'SSIM': '9.4536e-01'}"
|
883 | 882 | ]
|
884 | 883 | },
|
885 |
| - "execution_count": 22, |
| 884 | + "execution_count": 16, |
886 | 885 | "metadata": {},
|
887 | 886 | "output_type": "execute_result"
|
888 | 887 | }
|
|
907 | 906 | },
|
908 | 907 | {
|
909 | 908 | "cell_type": "code",
|
910 |
| - "execution_count": 110, |
| 909 | + "execution_count": 17, |
911 | 910 | "metadata": {},
|
912 | 911 | "outputs": [
|
913 | 912 | {
|
914 | 913 | "data": {
|
915 | 914 | "text/html": [
|
916 | 915 | "<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",
|
917 | 916 | " <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", |
919 | 918 | " <img src='http://static.arcgis.com/images/desktopapp.png' class=\"itemThumbnail\">\n",
|
920 | 919 | " </a>\n",
|
921 | 920 | " </div>\n",
|
922 | 921 | "\n",
|
923 | 922 | " <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", |
925 | 924 | " </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", |
928 | 927 | " <br/>0 comments, 0 views\n",
|
929 | 928 | " </div>\n",
|
930 | 929 | " </div>\n",
|
931 | 930 | " "
|
932 | 931 | ],
|
933 | 932 | "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>" |
935 | 934 | ]
|
936 | 935 | },
|
937 |
| - "execution_count": 110, |
| 936 | + "execution_count": 17, |
938 | 937 | "metadata": {},
|
939 | 938 | "output_type": "execute_result"
|
940 | 939 | }
|
941 | 940 | ],
|
942 | 941 | "source": [
|
943 |
| - "model_for_inferencing = gis.content.get('7d9343e75754476292389a8006b782ed')\n", |
| 942 | + "model_for_inferencing = gis.content.get('a94c729d87774b5e92a25d344e25364f')\n", |
944 | 943 | "model_for_inferencing"
|
945 | 944 | ]
|
946 | 945 | },
|
|
955 | 954 | "cell_type": "markdown",
|
956 | 955 | "metadata": {},
|
957 | 956 | "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\")`" |
959 | 959 | ]
|
960 | 960 | },
|
961 | 961 | {
|
|
974 | 974 | },
|
975 | 975 | {
|
976 | 976 | "cell_type": "code",
|
977 |
| - "execution_count": 98, |
| 977 | + "execution_count": 18, |
978 | 978 | "metadata": {
|
979 | 979 | "scrolled": true
|
980 | 980 | },
|
|
1003 | 1003 | "<Item title:\"apr_lst_ras\" type:Imagery Layer owner:demos_deldev>"
|
1004 | 1004 | ]
|
1005 | 1005 | },
|
1006 |
| - "execution_count": 98, |
| 1006 | + "execution_count": 18, |
1007 | 1007 | "metadata": {},
|
1008 | 1008 | "output_type": "execute_result"
|
1009 | 1009 | }
|
|
1015 | 1015 | },
|
1016 | 1016 | {
|
1017 | 1017 | "cell_type": "code",
|
1018 |
| - "execution_count": 99, |
| 1018 | + "execution_count": 19, |
1019 | 1019 | "metadata": {},
|
1020 | 1020 | "outputs": [],
|
1021 | 1021 | "source": [
|
|
1030 | 1030 | },
|
1031 | 1031 | {
|
1032 | 1032 | "cell_type": "code",
|
1033 |
| - "execution_count": 100, |
| 1033 | + "execution_count": 20, |
1034 | 1034 | "metadata": {
|
1035 | 1035 | "scrolled": true
|
1036 | 1036 | },
|
|
1059 | 1059 | "<Item title:\"july_lst_ras\" type:Imagery Layer owner:demos_deldev>"
|
1060 | 1060 | ]
|
1061 | 1061 | },
|
1062 |
| - "execution_count": 100, |
| 1062 | + "execution_count": 20, |
1063 | 1063 | "metadata": {},
|
1064 | 1064 | "output_type": "execute_result"
|
1065 | 1065 | }
|
|
1071 | 1071 | },
|
1072 | 1072 | {
|
1073 | 1073 | "cell_type": "code",
|
1074 |
| - "execution_count": 101, |
| 1074 | + "execution_count": 21, |
1075 | 1075 | "metadata": {},
|
1076 | 1076 | "outputs": [],
|
1077 | 1077 | "source": [
|
|
1093 | 1093 | },
|
1094 | 1094 | {
|
1095 | 1095 | "cell_type": "code",
|
1096 |
| - "execution_count": 102, |
| 1096 | + "execution_count": 22, |
1097 | 1097 | "metadata": {},
|
1098 | 1098 | "outputs": [],
|
1099 | 1099 | "source": [
|
|
1117 | 1117 | },
|
1118 | 1118 | {
|
1119 | 1119 | "cell_type": "code",
|
1120 |
| - "execution_count": 103, |
| 1120 | + "execution_count": 23, |
1121 | 1121 | "metadata": {},
|
1122 | 1122 | "outputs": [],
|
1123 | 1123 | "source": [
|
|
1127 | 1127 | },
|
1128 | 1128 | {
|
1129 | 1129 | "cell_type": "code",
|
1130 |
| - "execution_count": 104, |
| 1130 | + "execution_count": 24, |
1131 | 1131 | "metadata": {},
|
1132 | 1132 | "outputs": [],
|
1133 | 1133 | "source": [
|
|
1143 | 1143 | },
|
1144 | 1144 | {
|
1145 | 1145 | "cell_type": "code",
|
1146 |
| - "execution_count": 105, |
| 1146 | + "execution_count": 25, |
1147 | 1147 | "metadata": {},
|
1148 | 1148 | "outputs": [],
|
1149 | 1149 | "source": [
|
|
1159 | 1159 | },
|
1160 | 1160 | {
|
1161 | 1161 | "cell_type": "code",
|
1162 |
| - "execution_count": 106, |
| 1162 | + "execution_count": 26, |
1163 | 1163 | "metadata": {},
|
1164 | 1164 | "outputs": [],
|
1165 | 1165 | "source": [
|
|
1188 | 1188 | },
|
1189 | 1189 | {
|
1190 | 1190 | "cell_type": "code",
|
1191 |
| - "execution_count": null, |
| 1191 | + "execution_count": 27, |
1192 | 1192 | "metadata": {},
|
1193 | 1193 | "outputs": [],
|
1194 | 1194 | "source": [
|
|
1204 | 1204 | },
|
1205 | 1205 | {
|
1206 | 1206 | "cell_type": "code",
|
1207 |
| - "execution_count": 109, |
| 1207 | + "execution_count": 28, |
1208 | 1208 | "metadata": {},
|
1209 | 1209 | "outputs": [],
|
1210 | 1210 | "source": [
|
|
0 commit comments