Skip to content

Conversation

@xiaosq2000
Copy link

The extract_feat method in YOLOWorldDetector was missing initialization of txt_masks when using cached text features, causing ONNX export to fail with UnboundLocalError. This fix ensures txt_masks is properly initialized to None in all code paths.

…X export

The `extract_feat` method in `YOLOWorldDetector` was missing
initialization of txt_masks when using cached text features, causing
ONNX export to fail with `UnboundLocalError`. This fix ensures
`txt_masks` is properly initialized to `None` in all code paths.
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

Successfully merging this pull request may close these issues.

1 participant