Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
03fb31d
1
Parent(s):
696abc4
Update app.py
Browse files
app.py
CHANGED
@@ -39,8 +39,8 @@ if torch.cuda.is_available():
|
|
39 |
decoder_pipeline.to(device)
|
40 |
|
41 |
if USE_TORCH_COMPILE:
|
42 |
-
|
43 |
-
decoder_pipeline.decoder = torch.compile(decoder_pipeline.decoder, mode="
|
44 |
|
45 |
if PREVIEW_IMAGES:
|
46 |
pass
|
|
|
39 |
decoder_pipeline.to(device)
|
40 |
|
41 |
if USE_TORCH_COMPILE:
|
42 |
+
prior_pipeline.prior = torch.compile(prior_pipeline.prior)
|
43 |
+
decoder_pipeline.decoder = torch.compile(decoder_pipeline.decoder, mode="reduce-overhead", fullgraph=True)
|
44 |
|
45 |
if PREVIEW_IMAGES:
|
46 |
pass
|