Spaces:
Build error
Build error
Commit
·
5d635a7
1
Parent(s):
a698371
Add files
Browse files
app.py
CHANGED
|
@@ -252,6 +252,7 @@ def t2i_core(model, xt, emb, nemb, step=30, cfg_scale=7.5, return_list=False):
|
|
| 252 |
########
|
| 253 |
|
| 254 |
class wrapper(object):
|
|
|
|
| 255 |
def __init__(self,
|
| 256 |
fp16=False,
|
| 257 |
tag_diffuser=None,
|
|
@@ -281,6 +282,7 @@ class wrapper(object):
|
|
| 281 |
self.load_scheduler(tag_scheduler)
|
| 282 |
return tag_diffuser, tag_lora, tag_scheduler
|
| 283 |
|
|
|
|
| 284 |
def load_diffuser_lora(self, tag_diffuser, tag_lora):
|
| 285 |
self.net = StableDiffusionPipeline.from_pretrained(
|
| 286 |
choices.diffuser[tag_diffuser], torch_dtype=self.torch_dtype).to(self.device)
|
|
|
|
| 252 |
########
|
| 253 |
|
| 254 |
class wrapper(object):
|
| 255 |
+
@spaces.GPU()
|
| 256 |
def __init__(self,
|
| 257 |
fp16=False,
|
| 258 |
tag_diffuser=None,
|
|
|
|
| 282 |
self.load_scheduler(tag_scheduler)
|
| 283 |
return tag_diffuser, tag_lora, tag_scheduler
|
| 284 |
|
| 285 |
+
@spaces.GPU()
|
| 286 |
def load_diffuser_lora(self, tag_diffuser, tag_lora):
|
| 287 |
self.net = StableDiffusionPipeline.from_pretrained(
|
| 288 |
choices.diffuser[tag_diffuser], torch_dtype=self.torch_dtype).to(self.device)
|