Skip to content

Extra dependencies are imported when loading models via torch.hub.load #318

@chenzhekl

Description

@chenzhekl

Contrary to what has been stated in README.md. A bunch of extra dependencies have been imported when loading models via torch.hub.load. For example:

from dinov3.eval.segmentation.models import build_segmentation_decoder

brings in

from torchmetrics import Metric

This makes the life of people who just want to use the backbone painful.

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