Update app.py
Browse files
app.py
CHANGED
@@ -11,9 +11,9 @@ import torch
|
|
11 |
|
12 |
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
-
model_repo_id = "
|
15 |
|
16 |
-
pipe = OnnxRuntimeModel.from_pretrained("
|
17 |
pipe = OnnxRuntimeModel.from_pretrained("model_path", provider="CPUExecutionProvider")
|
18 |
pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch.float16)
|
19 |
pipe.enable_attention_slicing() # Divide o c谩lculo de aten莽茫o para melhorar o desempenho em dispositivos com menos mem贸ria
|
|
|
11 |
|
12 |
|
13 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
14 |
+
model_repo_id = "stabilityai/stable-diffusion-xl-base-1.0" # Replace to the model you would like to use
|
15 |
|
16 |
+
pipe = OnnxRuntimeModel.from_pretrained("sstabilityai/stable-diffusion-xl-base-1.0", provider="CPUExecutionProvider")
|
17 |
pipe = OnnxRuntimeModel.from_pretrained("model_path", provider="CPUExecutionProvider")
|
18 |
pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch.float16)
|
19 |
pipe.enable_attention_slicing() # Divide o c谩lculo de aten莽茫o para melhorar o desempenho em dispositivos com menos mem贸ria
|