Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,12 +9,7 @@ import torch
|
|
| 9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 10 |
model_repo_id = "anon4ik/noobaiXLNAIXL_epsilonPred05Version_diffusers" # Replace to the model you would like to use
|
| 11 |
|
| 12 |
-
|
| 13 |
-
torch_dtype = torch.float16
|
| 14 |
-
else:
|
| 15 |
-
torch_dtype = torch.float32
|
| 16 |
-
|
| 17 |
-
pipe = StableDiffusionXLPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)
|
| 18 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
| 19 |
pipe.scheduler.register_to_config(
|
| 20 |
prediction_type="v_prediction",
|
|
|
|
| 9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 10 |
model_repo_id = "anon4ik/noobaiXLNAIXL_epsilonPred05Version_diffusers" # Replace to the model you would like to use
|
| 11 |
|
| 12 |
+
pipe = StableDiffusionXLPipeline.from_pretrained(model_repo_id, torch_dtype=torch.float16)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
| 14 |
pipe.scheduler.register_to_config(
|
| 15 |
prediction_type="v_prediction",
|