Spaces:
Sleeping
Sleeping
git commit -am 'Update space' && git push
Browse files
app.py
CHANGED
|
@@ -12,7 +12,11 @@ if torch.cuda.is_available():
|
|
| 12 |
pipe.enable_xformers_memory_efficient_attention()
|
| 13 |
pipe = pipe.to(device)
|
| 14 |
else:
|
| 15 |
-
pipe = DiffusionPipeline.from_pretrained("stabilityai/sdxl-turbo", use_safetensors=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
pipe = pipe.to(device)
|
| 17 |
|
| 18 |
MAX_SEED = np.iinfo(np.int32).max
|
|
|
|
| 12 |
pipe.enable_xformers_memory_efficient_attention()
|
| 13 |
pipe = pipe.to(device)
|
| 14 |
else:
|
| 15 |
+
# pipe = DiffusionPipeline.from_pretrained("stabilityai/sdxl-turbo", use_safetensors=True)
|
| 16 |
+
model_id1 = "dreamlike-art/dreamlike-diffusion-1.0"
|
| 17 |
+
model_id2 = "stabilityai/stable-diffusion-xl-base-1.0"
|
| 18 |
+
model_id3 = "stabilityai/stable-diffusion-2"
|
| 19 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id1, torch_dtype=torch.float16, use_safetensors=True)
|
| 20 |
pipe = pipe.to(device)
|
| 21 |
|
| 22 |
MAX_SEED = np.iinfo(np.int32).max
|