Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -123,7 +123,8 @@ def process(
|
|
123 |
shape = (1, 4, height // 8, width // 8)
|
124 |
x_T = torch.randn(shape, device=device, dtype=torch.float32)
|
125 |
# Create unconditional embeddings for classifier-free guidance
|
126 |
-
|
|
|
127 |
|
128 |
if not tile_diffusion:
|
129 |
samples = sampler.sample_ccsr(
|
|
|
123 |
shape = (1, 4, height // 8, width // 8)
|
124 |
x_T = torch.randn(shape, device=device, dtype=torch.float32)
|
125 |
# Create unconditional embeddings for classifier-free guidance
|
126 |
+
c = model.get_learned_conditioning([positive_prompt])
|
127 |
+
uc = model.get_learned_conditioning([negative_prompt])
|
128 |
|
129 |
if not tile_diffusion:
|
130 |
samples = sampler.sample_ccsr(
|