adamelliotfields commited on
Commit
1a7f234
1 Parent(s): f70898c

Don't truncate prompts

Browse files
Files changed (1) hide show
  1. lib/inference.py +1 -0
lib/inference.py CHANGED
@@ -235,6 +235,7 @@ def generate(
235
  compel = Compel(
236
  device=pipe.device,
237
  tokenizer=pipe.tokenizer,
 
238
  text_encoder=pipe.text_encoder,
239
  returned_embeddings_type=EMBEDDINGS_TYPE,
240
  dtype_for_device_getter=lambda _: pipe.dtype,
 
235
  compel = Compel(
236
  device=pipe.device,
237
  tokenizer=pipe.tokenizer,
238
+ truncate_long_prompts=False,
239
  text_encoder=pipe.text_encoder,
240
  returned_embeddings_type=EMBEDDINGS_TYPE,
241
  dtype_for_device_getter=lambda _: pipe.dtype,