Select to view content in your preferred language

ingleShotDetector error - cannot import name 'set_guard_fail_hook' from 'torch._dynamo.eval_frame'

156
3
Jump to solution
2 weeks ago
VHolubec
Esri Regular Contributor

Hello,

I am testing this sample scenarios: https://developers.arcgis.com/python/samples/automate-road-surface-investigation-using-deep-learning... and when I got to point:

ssd = SingleShotDetector(data, backbone='resnet101',focal_loss=True)

I got the error:

ImportError: cannot import name 'set_guard_fail_hook' from 'torch._dynamo.eval_frame' (C:\Users\vholubec\AppData\Local\ESRI\conda\envs\CloneWars\Lib\site-packages\torch\_dynamo\eval_frame.py)

I am using Pro 3.3 with ArcGIS Deep Learning Essential package, so all should be fine - don´t you know if there is some workaround? 

 

I found similar error here: https://github.com/unslothai/unsloth/issues/243, but nothing has helped to fix it in Pro.

Thank you. 

Vladimir
0 Kudos
2 Solutions

Accepted Solutions
PavanYadav
Esri Contributor

Hello @VHolubec Is it only the Single Shot Detector Model Type not working? Are you encountering issues with other Model Types (e.g. RetinaNet) or any other deep learning tools? This would help determine if it's a deep learning package installation issue.

 

Pavan Yadav
Product Engineer at Esri
AI for Imagery
Connect with me on LinkedIn!
Contact Esri Support Services

View solution in original post

0 Kudos
VHolubec
Esri Regular Contributor

Hello @PavanYadav,

after further steps - new clonned environment and installing DL Libraries from GitHUB from GitHUB, which became available a while after I asked, it has started to work.

So it look, there was some temporal issue, solved on the package side.

Thank you very much!

Vladimir

View solution in original post

3 Replies
PavanYadav
Esri Contributor

Hello @VHolubec Is it only the Single Shot Detector Model Type not working? Are you encountering issues with other Model Types (e.g. RetinaNet) or any other deep learning tools? This would help determine if it's a deep learning package installation issue.

 

Pavan Yadav
Product Engineer at Esri
AI for Imagery
Connect with me on LinkedIn!
Contact Esri Support Services
0 Kudos
VHolubec
Esri Regular Contributor

Hello @PavanYadav,

after further steps - new clonned environment and installing DL Libraries from GitHUB from GitHUB, which became available a while after I asked, it has started to work.

So it look, there was some temporal issue, solved on the package side.

Thank you very much!

Vladimir
PavanYadav
Esri Contributor

@VHolubec that's great. 

Pavan Yadav
Product Engineer at Esri
AI for Imagery
Connect with me on LinkedIn!
Contact Esri Support Services