Skip to content

Making torch.hub.load less verbose #24791

@faroit

Description

@faroit

🚀 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

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

Metadata

Metadata

Assignees

Labels

featureA request for a proper, new feature.module: hubmodule: loggingFeatures 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 module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions