Upload test-one.py with huggingface_hub
Browse files- test-one.py +1 -3
test-one.py
CHANGED
|
@@ -8,9 +8,7 @@ from diffusers import StableDiffusionXLPipeline
|
|
| 8 |
base_model: str = "opendiffusionai/sdxlone"
|
| 9 |
|
| 10 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
| 11 |
-
base_model
|
| 12 |
-
tokenizer_2=None,
|
| 13 |
-
text_encoder_2=None)
|
| 14 |
|
| 15 |
device = torch.device("cuda")
|
| 16 |
pipe = pipe.to(device)
|
|
|
|
| 8 |
base_model: str = "opendiffusionai/sdxlone"
|
| 9 |
|
| 10 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
| 11 |
+
base_model)
|
|
|
|
|
|
|
| 12 |
|
| 13 |
device = torch.device("cuda")
|
| 14 |
pipe = pipe.to(device)
|