Skip to content

Conversation

maximpavliv
Copy link
Collaborator

This pull request suppresses the following warning that was appearing repeatedly in the GUI:

RuntimeWarning: invalid value encountered in cast

These warnings were triggered when the dataframe contains NaN values, which is a normal and expected situation during the labels refinement stage, where the model may predict NaN for some keypoint coordinates.

The warning is harmless and does not affect functionality, but cluttered the console and could confuse users.

The suppression is implemented in the plugin’s __init__.py using Python’s warnings module, targeting only this specific RuntimeWarning so that other warnings remain visible.

No changes to plugin functionality or data handling have been made.

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