Error occurred when executing LayerMask: SegmentAnythingUltra V2:
We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like hustvl/vitmatte-small-composition-1k is not the path to a directory containing a file named config.json.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
运行SegmentAnythingUltra V2或者其他V2版本的VITMatte时报错:
Error occurred when executing LayerMask: SegmentAnythingUltra V2: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like hustvl/vitmatte-small-composition-1k is not the path to a directory containing a file named config.json. Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
我的网络实际上没有问题,单独使用PY运行如下程序,是可以正常下载模型的,但是无论是否事先下载,插件都提示上述报错,请协助解决,谢谢。
用环境PY解析如下段落可以成功下载 from transformers import VitMatteImageProcessor, VitMatteForImageMatting processor = VitMatteImageProcessor.from_pretrained("hustvl/vitmatte-small-composition-1k") model = VitMatteForImageMatting.from_pretrained("hustvl/vitmatte-small-composition-1k")