Line 40 is fine. Most likely the error is in the code that sets the box_class_scores.
Posting your error messages is fine, but please do not extend that to posting your code itself.
You could try looking at one of these threads that includes exactly the same error message…
https://community.deeplearning.ai/search?q=%22cannot%20convert%200.5%20to%20EagerTensor%22
Let us know what you find?
Thanks a lot for help guys! Could solve my error. It was small mistake I have passed box_class as input when calculating argmax. Thanks a lot! @ [ai_curious]
1 Like