Error in who_is_it block in week 4

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

Hi @pavankumard, could you please double-check if this assignment is in TensorFlow: Data and Deployment Specialization? It seems to me it is from the Deep Learning specialization. It would be helpful to clarify, thank you.

1 Like

yeah my bad, i will post it there