fudan-zvg / Semantic-Segment-Anything

Automated dense category annotation engine that serves as the initial semantic labeling for the Segment Anything dataset (SA-1B).
Apache License 2.0
2.15k stars 138 forks source link

OneFormerProcessor #25

Open fujianhai opened 1 year ago

fujianhai commented 1 year ago

加载下载好的模型, oneformer出错,huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name':

oneformer_ade20k_processor = OneFormerProcessor.from_pretrained("shi-labs/oneformer_ade20k_swin_large") oneformer_ade20k_model = OneFormerForUniversalSegmentation.from_pretrained("shi-labs/oneformer_ade20k_swin_large").to(rank)

fujianhai commented 1 year ago

oneformer_ade20k_processor = OneFormerProcessor.from_pretrained("/xxx/HuggingFace/oneformer_ade20k_swin_large/")

XingTian1994 commented 8 months ago

Same problem, the oneformer processor tries to download from huggingface even if I input the local model path.

捕获

How to load other annotation models instead?