I am trying to publish my Object detection model but when i run this code to publish it
model.save('Building_footprint_10epochs', publish=True)
i get this error
@JayantaPoddar @DanPatterson @jcarlson @Tim_McGinnes @JoeBorgione @TimOrmsby @ShaunWalbridge @lamyaaghadiry1
Yes, I did.
I used my organization portal url then entered my username and password
Did you login to ArcGIS online account before publishing the .dlpk ?
from arcgis.gis import GIS gis = GIS("https://portalname.domain.com/webadapter_name", "sharinguser", "password")
Once you execute the above command, this account will be used by the {model}.save method to publish the model.
Guide page here https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/
It worked through ArcGIS Online with .dlpk extension.
which one do i choose to add the model
I tried the choose an item from my device and choose the .dlpk model but it didn't work so which extension do i use.
It is in ARCGIS Pro notebook, i want to publish it to arcgis online to be able to share it with people in my organization but i am not able to publish it and once i close arcgis pro i lose the model and have to run the notebook again which takes a lot of time.
If there is a method to share it from my notebook to arcgis online can you tell me the steps?
arcgis online
Are you able to publish it using the web interface of ArcGIS Online ?
What do you mean by AGOL ?
So it may be an AGOL issue then
I saved it locally but i want to publish ARCGIS Online so other people in my organization can use the model.
Did you try the standard project save, shut down, restart and retry the save?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.