<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Assistance using the predict_video function for object detection and tracking in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/assistance-using-the-predict-video-function-for/m-p/1044019#M5889</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;&amp;nbsp;The print statement after the from_model_path function output none.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The API reference documentation did not detail a return for the from_model_path function.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.learn.toc.html#retinanet" target="_blank"&gt;https://developers.arcgis.com/python/api-reference/arcgis.learn.toc.html#retinanet&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am unsure of the next step I should take to get the model to work with the predict_video function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Apr 2021 22:45:55 GMT</pubDate>
    <dc:creator>NatalieDobbs1</dc:creator>
    <dc:date>2021-04-05T22:45:55Z</dc:date>
    <item>
      <title>Assistance using the predict_video function for object detection and tracking</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/assistance-using-the-predict-video-function-for/m-p/1043947#M5887</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am kindly asking for assistance in resolving an error I am receiving when running a predict_video function on a video for object detection and tracking. I created the model using the RetinaNet model, and it is being stored on ArcGIS Online. I wanted to run the predict_video function on a video to obtain outputs on object detection and tracking.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The inference and tracking section of the script located in the link below used the RetinaNet function, which the script used earlier in the load model architecture section. Ideally, I would want to run the script using the predict_video function using the created model when needed without going through the steps to create the model each time.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/sample-notebooks/vehicle-detection-and-tracking/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/sample-notebooks/vehicle-detection-and-tracking/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I located the below link, which referenced the model and used the model with the predict_video function to obtain an output for object detection and tracking. I used the from_model_path to input the path location of the deep learning package containing the model on ArcGIS Online.&lt;/P&gt;&lt;P&gt;Below is the script used without the deep learning package path included.&amp;nbsp;&lt;/P&gt;&lt;P&gt;model = Model()&lt;BR /&gt;mdl = model.from_model_path("deep learning package path on the ArcGIS Online")&lt;/P&gt;&lt;P&gt;However, when I used the mdl with the predict_video function (below), I received an&amp;nbsp;AttributeError: 'NoneType' object has no attribute 'predict_video'.&lt;/P&gt;&lt;P&gt;mdl.predict_video(&lt;BR /&gt;input_video_path=video_file,&lt;BR /&gt;metadata_file='metadata_file.csv',&lt;BR /&gt;track=True,&lt;BR /&gt;visualize=True,&lt;BR /&gt;threshold=0.5,&lt;BR /&gt;resize=True)&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/guide/object-detection-and-tracking-on-videos/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/guide/object-detection-and-tracking-on-videos/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for any assistance in resolving this AttributeError.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 19:54:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/assistance-using-the-predict-video-function-for/m-p/1043947#M5887</guid>
      <dc:creator>NatalieDobbs1</dc:creator>
      <dc:date>2021-04-05T19:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance using the predict_video function for object detection and tracking</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/assistance-using-the-predict-video-function-for/m-p/1043960#M5888</link>
      <description>&lt;P&gt;&lt;SPAN&gt;mdl = model.from_model_path....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;returned None... throw a print statement in after that line to ensure that you are getting the correct input for the next step&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 20:00:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/assistance-using-the-predict-video-function-for/m-p/1043960#M5888</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-04-05T20:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Assistance using the predict_video function for object detection and tracking</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/assistance-using-the-predict-video-function-for/m-p/1044019#M5889</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;&amp;nbsp;The print statement after the from_model_path function output none.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The API reference documentation did not detail a return for the from_model_path function.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.learn.toc.html#retinanet" target="_blank"&gt;https://developers.arcgis.com/python/api-reference/arcgis.learn.toc.html#retinanet&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am unsure of the next step I should take to get the model to work with the predict_video function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 22:45:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/assistance-using-the-predict-video-function-for/m-p/1044019#M5889</guid>
      <dc:creator>NatalieDobbs1</dc:creator>
      <dc:date>2021-04-05T22:45:55Z</dc:date>
    </item>
  </channel>
</rss>

