You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could also add a shortcut with quiet=True for that.
Priority
This thing was touched on in #330 (comment) and from time to time we receive issues (#330) to either silence the output or redirect it to a different stream (#7040).
Still, I think the priority is pretty low for this. I just wanted to have it in a separate issue to make it easier to track.
The text was updated successfully, but these errors were encountered:
Could I help you with this? I would also be interested in allowing the user to disable some of the messages. Sorry for the beginner question, but is there also a reason not to use Python's logging module (as in lightning, for instance)?
Status Quo
Currently our datasets sometimes print diagnostic messages:
vision/torchvision/datasets/caltech.py
Line 128 in 657c076
The common download utilities write to STDOUT
vision/torchvision/datasets/utils.py
Line 156 in 657c076
and use
tqdm
which writes to STDERR:vision/torchvision/datasets/utils.py
Line 36 in 657c076
The latter has the option to also write to a different stream, but our fallback from
torch.hub
does not.In some cases some information is also logged by our dependencies
vision/torchvision/datasets/coco.py
Line 36 in 657c076
In any case, the user has no control over it whatsoever.
Proposal
Have a global or local setting for the stream we write to. For example
I would default it to
sys.stdout
, but no strong opinion. To silence everything, one could doWe could also add a shortcut with
quiet=True
for that.Priority
This thing was touched on in #330 (comment) and from time to time we receive issues (#330) to either silence the output or redirect it to a different stream (#7040).
Still, I think the priority is pretty low for this. I just wanted to have it in a separate issue to make it easier to track.
The text was updated successfully, but these errors were encountered: