Skip to content

Is it safe to ignore this warning, or should I add sync_dist=True? #909

@FT-Gyeongsu

Description

@FT-Gyeongsu
  1. When training and validating with multiple GPUs, is sync_dist set to False by default?
  2. Is there a specific place or configuration where it can be set?
  3. Should I add sync_dist=True to that code?”

Warning

C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/loss_ce', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.
C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/class_error', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.
C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/loss_bbox', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.
C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/loss_giou', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.
C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/cardinality_error', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.
C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/loss_ce_0', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.
C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/loss_bbox_0', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.
C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/loss_giou_0', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.
C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/cardinality_error_0', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.
C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/loss_ce_1', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.
C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/loss_bbox_1', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.
C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/loss_giou_1', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.
C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/cardinality_error_1', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.
C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/loss_ce_enc', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.
C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/loss_bbox_enc', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.
C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/loss_giou_enc', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.
C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/cardinality_error_enc', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.
C:\Users\software\anaconda3\envs\rf_detr\lib\site-packages\pytorch_lightning\trainer\connectors\logger_connector\result.py:433: It is recommended to use `self.log('train/loss', ..., sync_dist=True)` when logging on epoch level in distributed setting to accumulate the metric across devices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions