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
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