Skip to content

The download count for my model cannot be counted. #1831

@z-jiaming

Description

@z-jiaming

Hi @NielsRogge , Sorry to bother you !

We recently open-sourced an excellent model, named sam2++. But, the download count for my model cannot be counted.

The following code will download model weights from huggingface.

import torch
from sam2_plus.sam2_video_predictor import SAM2VideoPredictor_Plus

predictor = SAM2VideoPredictor_Plus.from_pretrained("MCG-NJU/SAM2-Plus")

I tried to find out the reason, and found https://huggingface.co/docs/hub/models-download-stats said config.json was needed.
However, when I tried manually downloading it using the following code, it still didn't work.

from transformers import PretrainedConfig
cfg = PretrainedConfig.from_pretrained("MCG-NJU/SAM2-Plus")
print(cfg)

Do you have any good suggestions? I would be very grateful.

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