Spaces:
Runtime error
Runtime error
convert to cpu only
Browse files- convert.py +1 -1
convert.py
CHANGED
@@ -860,7 +860,7 @@ def convert_full_checkpoint(
|
|
860 |
|
861 |
tokenizer = CLIPTokenizer.from_pretrained("openai/clip-vit-large-patch14")
|
862 |
safety_checker = StableDiffusionSafetyChecker.from_pretrained(
|
863 |
-
"CompVis/stable-diffusion-safety-checker", device_map="
|
864 |
)
|
865 |
feature_extractor = AutoFeatureExtractor.from_pretrained(
|
866 |
"CompVis/stable-diffusion-safety-checker"
|
|
|
860 |
|
861 |
tokenizer = CLIPTokenizer.from_pretrained("openai/clip-vit-large-patch14")
|
862 |
safety_checker = StableDiffusionSafetyChecker.from_pretrained(
|
863 |
+
"CompVis/stable-diffusion-safety-checker", device_map="cpu"
|
864 |
)
|
865 |
feature_extractor = AutoFeatureExtractor.from_pretrained(
|
866 |
"CompVis/stable-diffusion-safety-checker"
|