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

TypeError: 'NoneType' object is not iterable #102

Closed
SkalskiP opened this issue Jan 6, 2025 · 1 comment
Closed

TypeError: 'NoneType' object is not iterable #102

SkalskiP opened this issue Jan 6, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@SkalskiP
Copy link
Collaborator

SkalskiP commented Jan 6, 2025

Description

During Florence-2 for object detection fine-tuning, a TypeError: 'NoneType' object is not iterable error sometimes occurs originating from the process_output_for_detection_metric function. The error happens when the syntax of the generated prediction from Florence-2 </s><s>queen of spades</s><pad><pad><pad><pad> makes it impossible to parse into sv.Detections.

Environment

Fine-tune Florence-2 for object detection

Minimal Reproducible Example

Just run the Florence-2 for object detection fine-tuning Google Colab. There's a good chance you'll encounter this error.

@SkalskiP
Copy link
Collaborator Author

SkalskiP commented Jan 8, 2025

Bug fixed. The source was unreleased changes in the supervision package.

@SkalskiP SkalskiP closed this as completed Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant