Tolga
commited on
Commit
•
8db5529
1
Parent(s):
d165e79
Update app.py
Browse files
app.py
CHANGED
@@ -24,13 +24,12 @@ ENABLE_CPU_OFFLOAD = os.getenv('ENABLE_CPU_OFFLOAD') == '1'
|
|
24 |
|
25 |
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
|
26 |
if torch.cuda.is_available():
|
27 |
-
model = "
|
28 |
pipe = DiffusionPipeline.from_pretrained(
|
29 |
model,
|
30 |
torch_dtype=torch.float16,
|
31 |
use_safetensors=True,
|
32 |
variant='fp16')
|
33 |
-
pipe.load_lora_weights("model", weight_name="tk_pytorch_lora_weights.safetensors")
|
34 |
|
35 |
refiner = DiffusionPipeline.from_pretrained(
|
36 |
'stabilityai/stable-diffusion-xl-refiner-1.0',
|
|
|
24 |
|
25 |
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
|
26 |
if torch.cuda.is_available():
|
27 |
+
model = "tkurtulus/sdxl_tk"
|
28 |
pipe = DiffusionPipeline.from_pretrained(
|
29 |
model,
|
30 |
torch_dtype=torch.float16,
|
31 |
use_safetensors=True,
|
32 |
variant='fp16')
|
|
|
33 |
|
34 |
refiner = DiffusionPipeline.from_pretrained(
|
35 |
'stabilityai/stable-diffusion-xl-refiner-1.0',
|