EdjeElectronics/TensorFlow-Object-Detection-on-the-Raspberry-Pi

TypeError: __init__() missing 1 required positional argument: 'name'

harshbhatt99 opened this issue · 2 comments

Hey, I have followed your installation steps for setting up object detection with Raspberry Pi. I have installed tensorflow 2.1 and opencv3.4.6.27.
I have done following changes in the Object_detection code
tf.compat.v1.GraphDef() # -> instead of tf.GraphDef()
tf.compat.v2.io.gfile.GFile()# -> instead of tf.gfile.GFile()

But now I am getting error "TypeError: init() missing 1 required positional argument: 'name'" when I run following command in Terminal
python3 Object_detection_picamera.py

Can anyone provide any solution for this? Do I need to change anything more in Object Detection Code or this is an error of any library or dependencies?

I've been facing a similar issue. Has anyone got it yet?

Same issue here