Open pvdongen opened 1 year ago
Hi,
You can check whether the saved entropy_partital is complete, i.e. whether both left and right parts exist. Since the "feature match" algorithm matches the left and right parts separately, if a frame is missing a left or a right part, then it will not match.
If the above is correct, check that whether the matched "_entropy_p_fd.png" contains more than five pixels. This is because the 'cv::fitEllipse' function requires at least five points to fit an ellipse.
By the way, if you use your own dataset for inference, it is better to train the network with your own dataset as well, for better accuracy.
Hi,
- You can check whether the saved entropy_partital is complete, i.e. whether both left and right parts exist. Since the "feature match" algorithm matches the left and right parts separately, if a frame is missing a left or a right part, then it will not match.
- If the above is correct, check that whether the matched "_entropy_p_fd.png" contains more than five pixels. This is because the 'cv::fitEllipse' function requires at least five points to fit an ellipse.
By the way, if you use your own dataset for inference, it is better to train the network with your own dataset as well, for better accuracy.
Thank you for your quick reply.
...
[nan nan nan ... nan nan nan]
[nan nan nan ... nan nan nan]
[nan nan nan ... nan nan nan]]
[[nan nan nan ... nan nan nan]
[nan nan nan ... nan nan nan]
[nan nan nan ... nan nan nan]
...
C:\Users\PD\Downloads\ASGaze\Database\raw_data\tracking\0207-1231\InferResults\visual_left
and this folder only contains "number_entropy" and "number_entropy_p" png's. The other folders under "InferResults" are simply empty.Thanks for the tip, I will try to train the network with my own dataset but I first want to see the results with the current network.
Hi,
entropy_partial[np.isnan(entropy_partial)] = 0
deals specifically with this case.Hi,
- Is "entropy.png" normal, please?
- Theoretically, "entropy_partital" does not appear to be nan, as this line of code
entropy_partial[np.isnan(entropy_partial)] = 0
deals specifically with this case.
Hi,
Hi, Your code works perfectly with your database. When I run your code on a custom video, I get the following error:
Changing all_valid = all([item != False for item in eyes]) to all_valid = all([eyes]) fixes this problem. But then in step 2 another error pops up:
Environment: