The training function will start its printed outputs with something like:
[10/02 00:35:51] root WARNING: The model and loaded state dict do not match exactly
and no logging outputs will be printed during the training.
Expected behavior
Normally the first printed lines are:
2019-10-02 00:38:32,040 - INFO - Distributed training: False
2019-10-02 00:38:32,557 - INFO - load model from: torchvision://resnet50
2019-10-02 00:38:33,420 - WARNING - The model and loaded state dict do not match exactly
and logging outputs are printed during training, e.g.:
This seems to be a conflict between the two loggers. My quick fix was, to remove the logger in the lvis api and replace it by print functions where appropriate. I am happy to submit this as a pull request but I guess the issue needs some discussion and a decision from your side, how to proceed.
🐛 Bug
Logging can interfere with the logging used in object detection toolboxes like mmdetection.
To Reproduce
from lvis.lvis import LVIS
to a file (e.g.mmdet/datasets/coco.py
)The training function will start its printed outputs with something like:
and no logging outputs will be printed during the training.
Expected behavior
Normally the first printed lines are:
and logging outputs are printed during training, e.g.:
Additional context
This seems to be a conflict between the two loggers. My quick fix was, to remove the logger in the
lvis api
and replace it byprint
functions where appropriate. I am happy to submit this as a pull request but I guess the issue needs some discussion and a decision from your side, how to proceed.