UnboundLocalError Traceback (most recent call last)
in
1 # BEGIN UNIT TEST
2 # Test 1 with Younes pictures
----> 3 who_is_it(“images/camera_0.jpg”, database, FRmodel)
4
5 # Test 2 with Younes pictures
in who_is_it(image_path, database, model)
43 print ("it’s " + str(identity) + ", the distance is " + str(min_dist))
44
—> 45 return min_dist, identity
UnboundLocalError: local variable ‘identity’ referenced before assignment
Getting this error, I tried restarting kerner it isn’t working