From 1709b8aa6942e3553ee7e5ae3810ad7c702e824f Mon Sep 17 00:00:00 2001 From: space-nuko <24979496+space-nuko@users.noreply.github.com> Date: Tue, 16 May 2023 08:58:13 -0500 Subject: [PATCH] Comments --- nodes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nodes.py b/nodes.py index dfc471a..8d5ff15 100644 --- a/nodes.py +++ b/nodes.py @@ -50,8 +50,9 @@ class OpenAICLIPLoader: # For my own notes (because I was confused about this earlier): # DD requires the use of torch.autograd.grad so it can steer the output # image towards CLIP embeddings by calculating loss. - # But it's more efficient to load tensors without support for calculating loss - # because most people aren't training models, they're just running inference. + # But it's more efficient to run operations on tensors loaded without + # support for calculating loss, and most people aren't training models, + # they're just running inference. # And "torch.autograd.grad" is a function mostly used for training models. # But because (this implementation of) guided diffusion requires autograd, # we have to load the tensors with inference mode off ourselves (ComfyUI