Skip to content

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

Description

@harshbhatt99

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?

Activity

  1. shashwat1225 commented on May 20, 2020

    @shashwat1225

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

  2. DmitryBerdnik commented on May 6, 2022

    @DmitryBerdnik

    Same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions