-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Closed
Labels
featureA request for a proper, new feature.A request for a proper, new feature.module: hubmodule: loggingFeatures which make it easier to tell what PyTorch is doing under the hoodFeatures which make it easier to tell what PyTorch is doing under the hoodtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module
Description
🚀 Feature
Introduce a verbose=False flag for torch.hub.load
Motivation
When running inference using torch hub models on multiple files, it becomes a bit too verbose when always being confronted with the message
Using cache found in ...
this is produced by
Line 156 in 0a12ff7
| sys.stderr.write('Using cache found in {}\n'.format(repo_dir)) |
Pitch
torch.hub.load(..., verbose=False) should suppress the prints (and possibly also the loading progress bars)
cc @ailzhang
adriel
Metadata
Metadata
Assignees
Labels
featureA request for a proper, new feature.A request for a proper, new feature.module: hubmodule: loggingFeatures which make it easier to tell what PyTorch is doing under the hoodFeatures which make it easier to tell what PyTorch is doing under the hoodtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate moduleThis issue has been looked at a team member, and triaged and prioritized into an appropriate module