Open fujianhai opened 1 year ago
oneformer_ade20k_processor = OneFormerProcessor.from_pretrained("/xxx/HuggingFace/oneformer_ade20k_swin_large/")
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?
加载下载好的模型, 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)