Text-to-Image
Diffusers
Safetensors
recoilme commited on
Commit
32a3591
·
1 Parent(s): 5b9bbdb
Files changed (1) hide show
  1. train.py +1 -1
train.py CHANGED
@@ -171,7 +171,7 @@ def load_text_encoder():
171
  ).to(device).eval()
172
 
173
  @torch.no_grad()
174
- def encode_texts(text, max_length=max_length)::
175
  device = self.device
176
  dtype = self.unet.dtype
177
  if text is None: text = ""
 
171
  ).to(device).eval()
172
 
173
  @torch.no_grad()
174
+ def encode_texts(text, max_length=max_length):
175
  device = self.device
176
  dtype = self.unet.dtype
177
  if text is None: text = ""