You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably this problem occurs by torch version. I got same error but when I downgrade torch and torchvision I compiled successfully.
I think model compiled by old torch version. So model variables does not match any new version of pytorch.
NameError Traceback (most recent call last)
in ()
----> 1 inferenceing_function(img_path)
1 frames
in model_inference_results()
27 confidence, clas = expp.topk(1, dim=1)
28
---> 29 return f'Class: {class_name[clas]}', f'Confidence score: {confidence.item()}'
30
31
NameError: name 'class_name' is not defined
The text was updated successfully, but these errors were encountered: