question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get "None" when try to evaluate

See original GitHub issue

Hi, running an issue when trying to evaluate the detections in None any suggestion?

(keras) C:\Users\z\Anaconda3\envs\keras\Lib\site-packages\keras_rnet\keras_retinanet>python bin/evaluate.py csv valc.csv  class.csv D:\Dropbox\DL\open_image\data\resnet50_csv_01.h5
Using TensorFlow backend.
2019-01-06 03:30:17.319312: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
Loading model, this may take a second...
Running network: 100% (1 of 1) |#################################################| Elapsed Time: 0:00:11 Time:  0:00:11
Parsing annotations: 100% (1 of 1) |#############################################| Elapsed Time: 0:00:00 Time:  0:00:00
label 0
detections None
Traceback (most recent call last):
  File "bin/evaluate.py", line 188, in <module>
    main()
  File "bin/evaluate.py", line 167, in main
    save_path=args.save_path
  File "bin\..\..\keras_retinanet\utils\eval.py", line 197, in evaluate
    for d in detections:
TypeError: 'NoneType' object is not iterable

(keras) C:\Users\z\Anaconda3\envs\keras\Lib\site-packages\keras_rnet\keras_retinanet>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dabasmoticommented, Jan 10, 2019

Thanks. Great repository!

0reactions
hgaisercommented, Jan 10, 2019

If you start from 1, the network will “train” with an additional class (index 0), for which there is no data available. The evaluator should handle this more gracefully, the network is likely trained properly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do I get None in output in second line while using eval ...
But trying to evaluate print expression gives you None type. Print will be executed but type of eval("print(2+3)") will be None.
Read more >
None and How to Test for It - Real Python
Welcome back. This is the second video in this tutorial, and here I'm going to tell you a bit more about None and...
Read more >
8. Compound statements — Python 3.11.1 documentation
If the evaluation of an expression in the header of an except clause raises an exception, the original search for a handler is...
Read more >
QuerySet API reference | Django documentation
QuerySet API reference¶. This document describes the details of the QuerySet API. It builds on the material presented in the model and database...
Read more >
17/19 code looks OK but return returns "None". - Codecademy
Could some one explain to me why it's returning None? Output: Shutting down None. error message: Oops, try again. Your function failed on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found