SIGMitch commited on
Commit
90a12a3
·
1 Parent(s): 2daff99
Files changed (1) hide show
  1. latent_consistency_img2img.py +0 -8
latent_consistency_img2img.py CHANGED
@@ -121,14 +121,6 @@ class LatentConsistencyModelImg2ImgPipeline(DiffusionPipeline):
121
  truncation=False,
122
  return_tensors="pt",
123
  )
124
- negative_prompt = "ugly"
125
- negative_ids = pipeline.tokenizer(
126
- negative_prompt,
127
- truncation=False,
128
- padding="max_length",
129
- max_length=input_ids.shape[-1],
130
- return_tensors="pt"
131
- ).input_ids.to("cuda")
132
 
133
  text_input_ids = text_inputs.input_ids("cuda")
134
  untruncated_ids = self.tokenizer(
 
121
  truncation=False,
122
  return_tensors="pt",
123
  )
 
 
 
 
 
 
 
 
124
 
125
  text_input_ids = text_inputs.input_ids("cuda")
126
  untruncated_ids = self.tokenizer(