mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
just no grad everything to prevent mistakes (#359)
* just no grad everything to prevent mistakes * just no grad everything to prevent mistakes
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
|||||||
version = '2.0.2'
|
version = '2.0.3'
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import threading
|
import threading
|
||||||
|
import torch
|
||||||
|
|
||||||
|
|
||||||
buffer = []
|
buffer = []
|
||||||
@@ -33,6 +34,7 @@ def worker():
|
|||||||
def progressbar(number, text):
|
def progressbar(number, text):
|
||||||
outputs.append(['preview', (number, text, None)])
|
outputs.append(['preview', (number, text, None)])
|
||||||
|
|
||||||
|
@torch.no_grad()
|
||||||
def handler(task):
|
def handler(task):
|
||||||
prompt, negative_prompt, style_selections, performance_selction, \
|
prompt, negative_prompt, style_selections, performance_selction, \
|
||||||
aspect_ratios_selction, image_number, image_seed, sharpness, \
|
aspect_ratios_selction, image_number, image_seed, sharpness, \
|
||||||
|
|||||||
Reference in New Issue
Block a user