Skip to content

fix: logging.Logger.warn is deprecated and emits DeprecationWarning - #67

Open
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/odise-checkpointer-01ac8d24
Open

fix: logging.Logger.warn is deprecated and emits DeprecationWarning#67
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/odise-checkpointer-01ac8d24

Conversation

@andrewwhitecdw

Copy link
Copy Markdown

Problem

fix: logging.Logger.warn is deprecated and emits DeprecationWarning

Fix

Replace:

            self.logger.warn(
                "Keys with prefix are removed from state_dict:\n" + ",".join(prefix_list)
            )

            self.logger.warn(
                f"Removed {len(removed_keys)} ignored_state_dict keys from missing_keys"
            )

with:

            self.logger.warning(
                "Keys with prefix are removed from state_dict:\n" + ",".join(prefix_list)
            )

            self.logger.warning(
                f"Removed {len(removed_keys)} ignored_state_dict keys from missing_keys"
            )

Files changed

  • odise/checkpoint/odise_checkpointer.py

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