Commit
·
ed22c52
1
Parent(s):
4c2cb43
close npnet
Browse files
app.py
CHANGED
|
@@ -880,7 +880,7 @@ def generate_image_with_steps(prompt, negative_prompt, seed, width, height, guid
|
|
| 880 |
# prompt_embeds = torch.cat([negative_prompt_embeds, prompt_embeds], dim=0)
|
| 881 |
|
| 882 |
# if (num_inference_steps != -1 or num_inference_steps <= 8) and not opt.force_not_use_NPNet:
|
| 883 |
-
x = npn_net(x,c)
|
| 884 |
|
| 885 |
extra_args = {'prompt': prompts, 'cond_scale': guidance_scale}
|
| 886 |
with torch.no_grad():
|
|
|
|
| 880 |
# prompt_embeds = torch.cat([negative_prompt_embeds, prompt_embeds], dim=0)
|
| 881 |
|
| 882 |
# if (num_inference_steps != -1 or num_inference_steps <= 8) and not opt.force_not_use_NPNet:
|
| 883 |
+
# x = npn_net(x,c)
|
| 884 |
|
| 885 |
extra_args = {'prompt': prompts, 'cond_scale': guidance_scale}
|
| 886 |
with torch.no_grad():
|