arcgis-python-api icon indicating copy to clipboard operation
arcgis-python-api copied to clipboard

Updated deep learning sample notebooks - 2

Open shivanip32 opened this issue 1 year ago • 27 comments

<insert pull request description here>


Checklist

Please go through each entry in the below checklist and mark an 'X' if that condition has been met. Every entry should be marked with an 'X' to be get the Pull Request approved.

  • [ ] All imports are in the first cell?
    • [ ] First block of imports are standard libraries
    • [ ] Second block are 3rd party libraries
    • [ ] Third block are all arcgis imports? Note that in some cases, for samples, it is a good idea to keep the imports next to where they are used, particularly for uncommonly used features that we want to highlight.
  • [ ] All GIS object instantiations are one of the following?
    • gis = GIS()
    • gis = GIS('home') or gis = GIS('pro')
    • gis = GIS(profile="your_online_portal")
    • gis = GIS(profile="your_enterprise_portal")
  • [ ] If this notebook requires setup or teardown, did you add the appropriate code to ./misc/setup.py and/or ./misc/teardown.py?
  • [ ] If this notebook references any portal items that need to be staged on AGOL/Python API playground, did you coordinate with a Python API team member to stage the item the correct way with the api_data_owner user?
  • [ ] If the notebook requires working with local data (such as CSV, FGDB, SHP, Raster files), upload the files as items to the Geosaurus Online Org using api_data_owner account and change the notebook to first download and unpack the files.
  • [ ] Code simplified & split out across multiple cells, useful comments?
  • [ ] Consistent voice/tense/narrative style? Thoroughly checked for typos?
  • [ ] All images used like <img src="base64str_here"> instead of <img src="https://some.url">? All map widgets contain a static image preview? (Call mapview_inst.take_screenshot() to do so)
  • [ ] All file paths are constructed in an OS-agnostic fashion with os.path.join()? (Instead of r"\foo\bar", os.path.join(os.path.sep, "foo", "bar"), etc.)
  • [ ] Is your code formatted using Jupyter Black? You can use Jupyter Black to format your code in the notebook.
  • [ ] IF YOU WANT THIS SAMPLE TO BE DISPLAYED ON THE DEVELOPERS.ARCGIS.COM WEBSITE, ping @ mohi9282 so he can add it to the list for the next deploy

shivanip32 avatar Jul 28 '23 11:07 shivanip32

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

View / edit / reply to this conversation on ReviewNB

sumanttyagi commented on 2023-11-14T07:25:15Z ----------------------------------------------------------------

change "inference_raster" to "sample_inference_raster" in map1.add_layer(inference_raster)


View / edit / reply to this conversation on ReviewNB

sumanttyagi commented on 2023-11-14T07:25:16Z ----------------------------------------------------------------

this cell has some different output of map . Please check


View / edit / reply to this conversation on ReviewNB

sumanttyagi commented on 2023-11-14T07:41:46Z ----------------------------------------------------------------

warnings

C:\Users\sum11525\AppData\Local\ESRI\conda\envs\dl-envsep23\lib\site-packages\mmseg\models\decode_heads\decode_head.py:94: UserWarning:

For binary segmentation, we suggest usingout_channels = 1 to define the outputchannels of segmentor, and use thresholdto convert seg_logist into a predictionapplying a threshold

C:\Users\sum11525\AppData\Local\ESRI\conda\envs\dl-envsep23\lib\site-packages\mmseg\models\losses\cross_entropy_loss.py:235: UserWarning:

Default avg_non_ignore is False, if you would like to ignore the certain label and average loss over non-ignore labels, which is the same with PyTorch official cross_entropy, set avg_non_ignore=True.

Downloading: "https://download.openmmlab.com/mmsegmentation/v0.5/hrnet/fcn_hr48_512x1024_160k_cityscapes/fcn_hr48_512x1024_160k_cityscapes_20200602_190946-59b7973e.pth" to C:\Users\sum11525/.cache\torch\hub\checkpoints\fcn_hr48_512x1024_160k_cityscapes_20200602_190946-59b7973e.pth


shivanip32 commented on 2023-12-04T11:37:48Z ----------------------------------------------------------------

not able to reproduce the warning.

View / edit / reply to this conversation on ReviewNB

sumanttyagi commented on 2023-11-14T07:58:55Z ----------------------------------------------------------------

input_raster to be changes to input_raster_layer


View / edit / reply to this conversation on ReviewNB

sumanttyagi commented on 2023-11-14T07:58:56Z ----------------------------------------------------------------

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_29932\1772424429.py in <cell line: 1>()
----> 1 ds.search()

AttributeError: 'NoneType' object has no attribute 'search'


shivanip32 commented on 2024-01-29T09:05:39Z ----------------------------------------------------------------

This notebook needs to be run using an enterprise portal.

View / edit / reply to this conversation on ReviewNB

sumanttyagi commented on 2023-11-14T07:58:56Z ----------------------------------------------------------------

AttributeError                            Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_29932\2424663473.py in <cell line: 1>()
----> 1 rasterstore = ds.get("/rasterStores/LocalRasterStore")
      2 rasterstore

AttributeError: 'NoneType' object has no attribute 'get'


shivanip32 commented on 2024-01-29T09:07:15Z ----------------------------------------------------------------

This notebook needs to be run using an enterprise portal.

View / edit / reply to this conversation on ReviewNB

sumanttyagi commented on 2023-11-14T07:58:57Z ----------------------------------------------------------------

NameError: name 'building_label' is not defined

View / edit / reply to this conversation on ReviewNB

sumanttyagi commented on 2023-11-22T06:53:08Z ----------------------------------------------------------------

Please move it from playground to geosaurus as the playground is getting deprecated.


shivanip32 commented on 2024-01-23T06:23:39Z ----------------------------------------------------------------

Will do it later in separate pr

View / edit / reply to this conversation on ReviewNB

sumanttyagi commented on 2023-11-22T06:53:09Z ----------------------------------------------------------------

Please move it from playground to geosaurus as the playground is getting deprecated.


shivanip32 commented on 2024-01-23T06:24:15Z ----------------------------------------------------------------

Will do it later in separate pr

  • if the image needs to be on an Enterprise, move it to the new playground (https://pythonapi.playground.esri.com/portal)

View / edit / reply to this conversation on ReviewNB

sumanttyagi commented on 2023-11-22T06:53:10Z ----------------------------------------------------------------

Please move it from playground to geosaurus as the playground is getting deprecated.


shivanip32 commented on 2024-01-23T06:24:29Z ----------------------------------------------------------------

Will do it later in separate pr

View / edit / reply to this conversation on ReviewNB

sumanttyagi commented on 2023-11-22T07:01:28Z ----------------------------------------------------------------

This item is not accessibly


shivanip32 commented on 2024-01-29T08:53:44Z ----------------------------------------------------------------

This will be generated when this cell will run.

View / edit / reply to this conversation on ReviewNB

sumanttyagi commented on 2023-11-22T07:01:28Z ----------------------------------------------------------------

Please move it from playground to geosaurus as the playground is getting deprecated.


shivanip32 commented on 2024-01-29T13:01:10Z ----------------------------------------------------------------

This notebook is expected to work on enterprise, geosaurus org is ArcGIS Online.

View / edit / reply to this conversation on ReviewNB

sumanttyagi commented on 2023-11-22T07:01:29Z ----------------------------------------------------------------

Please move it from playground to geosaurus as the playground is getting deprecated.


shivanip32 commented on 2024-01-29T13:00:22Z ----------------------------------------------------------------

This notebook is expected to work on enterprise, geosaurus org is ArcGIS Online.

View / edit / reply to this conversation on ReviewNB

sumanttyagi commented on 2023-11-22T07:01:30Z ----------------------------------------------------------------

Please move it from playground to geosaurus as the playground is getting deprecated.


shivanip32 commented on 2024-01-29T12:59:34Z ----------------------------------------------------------------

This notebook is expected to work on enterprise, geosaurus org is ArcGIS Online.

not able to reproduce the warning.


View entire conversation on ReviewNB

shivanip32 avatar Dec 04 '23 11:12 shivanip32

Will do it later in separate pr


View entire conversation on ReviewNB

shivanip32 avatar Jan 23 '24 06:01 shivanip32

Will do it later in separate pr


View entire conversation on ReviewNB

shivanip32 avatar Jan 23 '24 06:01 shivanip32

Will do it later in separate pr


View entire conversation on ReviewNB

shivanip32 avatar Jan 23 '24 06:01 shivanip32

This will be generated when this cell will run.


View entire conversation on ReviewNB

shivanip32 avatar Jan 29 '24 08:01 shivanip32

This notebook needs to be run using an enterprise portal.


View entire conversation on ReviewNB

shivanip32 avatar Jan 29 '24 09:01 shivanip32

This notebook needs to be run using an enterprise portal.


View entire conversation on ReviewNB

shivanip32 avatar Jan 29 '24 09:01 shivanip32

Will do it later.


View entire conversation on ReviewNB

shivanip32 avatar Jan 29 '24 12:01 shivanip32

Will do it later.


View entire conversation on ReviewNB

shivanip32 avatar Jan 29 '24 12:01 shivanip32

This notebook is expected to work on enterprise, geosaurus org is ArcGIS Online.


View entire conversation on ReviewNB

shivanip32 avatar Jan 29 '24 12:01 shivanip32

This notebook is expected to work on enterprise, geosaurus org is ArcGIS Online.


View entire conversation on ReviewNB

shivanip32 avatar Jan 29 '24 13:01 shivanip32

This notebook is expected to work on enterprise, geosaurus org is ArcGIS Online.


View entire conversation on ReviewNB

shivanip32 avatar Jan 29 '24 13:01 shivanip32

View / edit / reply to this conversation on ReviewNB

jyaistMap commented on 2024-07-04T15:28:26Z ----------------------------------------------------------------

The use of an image as output here is affecting the placement of the Save the model markdown heading below. If possible, use the normal output cell of the notebook.


image