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

nan value in evaluate_mAP.py #188

Open
hukutonpl opened this issue Jul 18, 2022 · 1 comment
Open

nan value in evaluate_mAP.py #188

hukutonpl opened this issue Jul 18, 2022 · 1 comment

Comments

@hukutonpl
Copy link

hukutonpl commented Jul 18, 2022

t1 = time.time()
if YOLO_FRAMEWORK == "tf":
    pred_bbox = Yolo.predict(image_data)

predict gives nan value after the first image.
This gives very low mAP

@hukutonpl
Copy link
Author

Change it to this

t1 = time.time()
if YOLO_FRAMEWORK == "tf":
        Yolo.load_weights(f"./checkpoints/{TRAIN_MODEL_NAME}")
        pred_bbox = Yolo.predict(image_data)

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

1 participant