Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pjreddie/darknet/blob/master/python/darknet.py: Last line is a syntax error for python3 #2525

Closed
Alperencode opened this issue Mar 5, 2022 · 4 comments

Comments

@Alperencode
Copy link
Contributor

Last line of darknet.py function which is 'print r'

if __name__ == "__main__":
    #net = load_net("cfg/densenet201.cfg", "/home/pjreddie/trained/densenet201.weights", 0)
    #im = load_image("data/wolf.jpg", 0, 0)
    #meta = load_meta("cfg/imagenet1k.data")
    #r = classify(net, meta, im)
    #print r[:10]
    net = load_net("cfg/tiny-yolo.cfg", "tiny-yolo.weights", 0)
    meta = load_meta("cfg/coco.data")
    r = detect(net, meta, "data/dog.jpg")
    print r

Is a syntax error for python3. It need to be print(r) to fix the error.

AlexeyAB added a commit that referenced this issue Mar 5, 2022
@F0L14
Copy link

F0L14 commented Oct 25, 2022

@AlexeyAB why did Closed?

@F0L14
Copy link

F0L14 commented Oct 25, 2022

@Broham why did Closed?

@4quilis
Copy link

4quilis commented Oct 29, 2022

@Broham When this happend??

@4quilis
Copy link

4quilis commented Oct 29, 2022

@Alperencode When this happend??

jmaximoff pushed a commit to nepi-engine/darknet that referenced this issue Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants