-
Notifications
You must be signed in to change notification settings - Fork 690
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
Bump up pytorch-lightning
version to 1.6.0
or higher
#193
Bump up pytorch-lightning
version to 1.6.0
or higher
#193
Conversation
…o fix/sa/pytorch-lightning-vulnerability
…o fix/sa/pytorch-lightning-vulnerability
…o fix/sa/pytorch-lightning-vulnerability
slows down the training.
…github.com:openvinotoolkit/anomalib into fix/sa/pytorch-lightning-vulnerability
…o fix/sa/pytorch-lightning-vulnerability
…lly set `trainer.global_step`
…y set `trainer.global_step`
…lly set `trainer.global_step`
…tically set `trainer.global_step`
@@ -68,7 +69,7 @@ def _add_images( | |||
for log_to in module.hparams.project.log_images_to: | |||
if log_to in loggers.AVAILABLE_LOGGERS: | |||
# check if logger object is same as the requested object | |||
if log_to in logger_type and module.logger is not None: | |||
if log_to in logger_type and module.logger is not None and isinstance(module.logger, ImageLoggerBase): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why this is needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is to silence mypy. Some typings have changed in pl 1.6, causing some mypy issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, so no functional changes to the visualizer callback then
Description
Current version of pytorch_lightning library has vulnerability to code injection (code read from environment variables started with PL_ could be evaluated.)
Fixes Fix the pytorch_lightning env vars vulnerability #191
Changes
Checklist