Spaces:
Running
on
Zero
Running
on
Zero
Add new model
Browse files
model/models/huggingface_models.py
CHANGED
@@ -28,10 +28,9 @@ def load_huggingface_model(model_name, model_type):
|
|
28 |
|
29 |
|
30 |
if __name__ == "__main__":
|
31 |
-
|
32 |
-
|
33 |
|
34 |
# for name in ["IF-I-XL-v1.0"]:
|
35 |
# pipe = load_huggingface_model(name, 'text2image')
|
36 |
-
# pipe = DiffusionPipeline.from_pretrained("DeepFloyd/IF-I-XL-v1.0", variant="fp16", torch_dtype=torch.float16)
|
37 |
-
|
|
|
28 |
|
29 |
|
30 |
if __name__ == "__main__":
|
31 |
+
for name in ["SD-turbo", "SDXL-turbo"]: #"SD-turbo", "SDXL-turbo"
|
32 |
+
pipe = load_huggingface_model(name, "text2image")
|
33 |
|
34 |
# for name in ["IF-I-XL-v1.0"]:
|
35 |
# pipe = load_huggingface_model(name, 'text2image')
|
36 |
+
# pipe = DiffusionPipeline.from_pretrained("DeepFloyd/IF-I-XL-v1.0", variant="fp16", torch_dtype=torch.float16)
|
|