Skip to content

Commit d2dc615

Browse files
authored
Merge pull request #1990 from Esri/jy-rvw-road-surf
remove comments and change how video code is entered so rest of notebook displays
2 parents 7682436 + b6d38ac commit d2dc615

File tree

2 files changed

+984
-50
lines changed

2 files changed

+984
-50
lines changed

samples/04_gis_analysts_data_scientists/automate_road_surface_investigation_using_deep_learning.ipynb

Lines changed: 16 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,7 @@
393393
{
394394
"cell_type": "code",
395395
"execution_count": 12,
396-
"metadata": {
397-
"scrolled": false
398-
},
396+
"metadata": {},
399397
"outputs": [],
400398
"source": [
401399
"ssd = SingleShotDetector(data, backbone='resnet101',focal_loss=True)"
@@ -411,9 +409,7 @@
411409
{
412410
"cell_type": "code",
413411
"execution_count": 13,
414-
"metadata": {
415-
"scrolled": false
416-
},
412+
"metadata": {},
417413
"outputs": [
418414
{
419415
"data": {
@@ -493,9 +489,7 @@
493489
{
494490
"cell_type": "code",
495491
"execution_count": 15,
496-
"metadata": {
497-
"scrolled": false
498-
},
492+
"metadata": {},
499493
"outputs": [
500494
{
501495
"data": {
@@ -746,9 +740,7 @@
746740
{
747741
"cell_type": "code",
748742
"execution_count": 17,
749-
"metadata": {
750-
"scrolled": false
751-
},
743+
"metadata": {},
752744
"outputs": [
753745
{
754746
"data": {
@@ -835,9 +827,7 @@
835827
{
836828
"cell_type": "code",
837829
"execution_count": 19,
838-
"metadata": {
839-
"scrolled": false
840-
},
830+
"metadata": {},
841831
"outputs": [
842832
{
843833
"data": {
@@ -1003,39 +993,23 @@
1003993
},
1004994
{
1005995
"cell_type": "code",
1006-
"execution_count": 26,
1007-
"metadata": {
1008-
"scrolled": true
1009-
},
996+
"execution_count": 5,
997+
"metadata": {},
1010998
"outputs": [
1011999
{
10121000
"data": {
10131001
"text/html": [
1014-
"\n",
1015-
" <div>\n",
1016-
" <style>\n",
1017-
" /* Turns off some styling */\n",
1018-
" progress {\n",
1019-
" /* gets rid of default border in Firefox and Opera. */\n",
1020-
" border: none;\n",
1021-
" /* Needs to be in here for Safari polyfill so background images work as expected. */\n",
1022-
" background-size: auto;\n",
1023-
" }\n",
1024-
" .progress-bar-interrupted, .progress-bar-interrupted::-webkit-progress-bar {\n",
1025-
" background: #F44336;\n",
1026-
" }\n",
1027-
" </style>\n",
1028-
" <progress value='11295' class='' max='11295', style='width:300px; height:20px; vertical-align: middle;'></progress>\n",
1029-
" 100.00% [11295/11295 13:43<00:00]\n",
1030-
" </div>\n",
1031-
" "
1002+
"<video src=\"../../static/video/road_crack_prediction.mp4\" controls >\n",
1003+
" Your browser does not support the <code>video</code> element.\n",
1004+
" </video>"
10321005
],
10331006
"text/plain": [
1034-
"<IPython.core.display.HTML object>"
1007+
"<IPython.core.display.Video object>"
10351008
]
10361009
},
1010+
"execution_count": 5,
10371011
"metadata": {},
1038-
"output_type": "display_data"
1012+
"output_type": "execute_result"
10391013
}
10401014
],
10411015
"source": [
@@ -1045,13 +1019,6 @@
10451019
" resize=True)"
10461020
]
10471021
},
1048-
{
1049-
"cell_type": "markdown",
1050-
"metadata": {},
1051-
"source": [
1052-
"<video width=\"100%\" height=\"450\" loop=\"loop\" controls src=\"../../static/video/road_crack_prediction.mp4\" />"
1053-
]
1054-
},
10551022
{
10561023
"cell_type": "markdown",
10571024
"metadata": {},
@@ -1491,7 +1458,7 @@
14911458
"notebookRuntimeVersion": ""
14921459
},
14931460
"kernelspec": {
1494-
"display_name": "Python 3",
1461+
"display_name": "Python 3 (ipykernel)",
14951462
"language": "python",
14961463
"name": "python3"
14971464
},
@@ -1505,9 +1472,9 @@
15051472
"name": "python",
15061473
"nbconvert_exporter": "python",
15071474
"pygments_lexer": "ipython3",
1508-
"version": "3.7.9"
1475+
"version": "3.11.0"
15091476
}
15101477
},
15111478
"nbformat": 4,
1512-
"nbformat_minor": 2
1479+
"nbformat_minor": 4
15131480
}

samples/04_gis_analysts_data_scientists/calculate_impervious_surfaces_from_spectral_imagery.ipynb

Lines changed: 968 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)