Skip to content

fix export_model dumping unnormalized objects in pickle - #3473

Merged
deruyter92 merged 3 commits into
devfrom
jaap/fix-export-model
Sep 1, 2026
Merged

deruyter92 merged 3 commits into
devfrom
jaap/fix-export-model

Conversation

@deruyter92

@deruyter92 deruyter92 commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Export model unintendedly missed the normalize=True flag, which makes sure that all objects in the config are normalized to primitive types: e.g. Path -> str, Enum -> str, etc

This is addressed in the current PR by adding normalize=True in the PoseConfig.to_dict() call.

@C-Achard C-Achard left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

Comment thread tests/pose_estimation_pytorch/apis/test_apis_export.py Outdated
…e types

isinstance checks would silently pass raw objects like CommentedMap which is a `dict` subclass. the type check is now made stricter to avoid these cases.
@deruyter92
deruyter92 merged commit 1150d78 into dev Sep 1, 2026
3 checks passed
@deruyter92
deruyter92 deleted the jaap/fix-export-model branch September 1, 2026 06:56
@deruyter92 deruyter92 added 3.0.2 and removed 3.1 labels Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants