Skip to content

Why I get NAN for df.class_name.max? #13

Open
@hnyz979

Description

@hnyz979

Dear Ferri:
Thank you for your codes.
I am using Tensorflow with opencv3.3.1, and I changed some of the codes according to the demandas of different opencv versions (for example, cv2.cv.CV_CAP_PROP_FRAME_COUNT is changed to cv2.CV_CAP_PROP_FRAME_COUNT). After these minor changes, the code can be run without errors in my computer.
However, the output seems a little strange when I am running VID_yolo.py (the 3rd step in your README.md). The results are as follows:
Starting Loading Results
[==========================================================] 100% Time: 0:00:00
Finished Loading Results
Computing Final Mean Reasults..
Class:
nan
Max Value:
nan
Min Value:
nan
Elapsed Time:6 Seconds
Running Completed with Success!!!
It is a little confusing why it gives out NANs for I haven't changed any parameters in your code.

Also, although I saw the frames output, it is not quite the same with that in the folder /video_result, and the green bounding box is not seen.

Could you kindly tell me how to solve this problem? many thanks.

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