Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行SD_style下的txt2img文件时报错,这个模型无法加载 #18

Open
Blue-Sky-Wang opened this issue Apr 7, 2024 · 0 comments

Comments

@Blue-Sky-Wang
Copy link

Traceback (most recent call last):
safety_feature_extractor = AutoFeatureExtractor.from_pretrained(safety_model_id)
File "D:\Python\Anaconda\envs\Sd-style\lib\site-packages\transformers\models\auto\feature_extraction_auto.py", line 270, in from_pretrained
config_dict, _ = FeatureExtractionMixin.get_feature_extractor_dict(pretrained_model_name_or_path, **kwargs)
File "D:\Python\Anaconda\envs\Sd-style\lib\site-packages\transformers\feature_extraction_utils.py", line 443, in get_feature_extractor_dict
raise EnvironmentError(
OSError: Can't load feature extractor for 'CompVis/stable-diffusion-safety-checker'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'CompVis/stable-diffusion-safety-checker' is the correct path to a directory containing a preprocessor_config.json file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant