mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
put no_grad decorator on make_image closures (#375)
This commit is contained in:
parent
0f93dadd6a
commit
a20113d5a3
@ -474,6 +474,7 @@ class T2I:
|
|||||||
|
|
||||||
sampler = self.sampler
|
sampler = self.sampler
|
||||||
|
|
||||||
|
@torch.no_grad()
|
||||||
def make_image(x_T):
|
def make_image(x_T):
|
||||||
uc, c = self._get_uc_and_c(prompt, skip_normalize)
|
uc, c = self._get_uc_and_c(prompt, skip_normalize)
|
||||||
shape = [
|
shape = [
|
||||||
@ -528,6 +529,7 @@ class T2I:
|
|||||||
|
|
||||||
t_enc = int(strength * steps)
|
t_enc = int(strength * steps)
|
||||||
|
|
||||||
|
@torch.no_grad()
|
||||||
def make_image(x_T):
|
def make_image(x_T):
|
||||||
uc, c = self._get_uc_and_c(prompt, skip_normalize)
|
uc, c = self._get_uc_and_c(prompt, skip_normalize)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user