animelover commited on
Commit
0ddba2f
1 Parent(s): ee22f80

修复compel名称

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -257,7 +257,7 @@ def infer(
257
  seed = int(randomize_seed_fn(seed, randomize_seed))
258
  generator = torch.Generator().manual_seed(seed)
259
  # 初始化 Compel 实例
260
- compel_instance = Compel(
261
  tokenizer=[pipe.tokenizer, pipe.tokenizer_2],
262
  text_encoder=[pipe.text_encoder, pipe.text_encoder_2],
263
  returned_embeddings_type=ReturnedEmbeddingsType.PENULTIMATE_HIDDEN_STATES_NON_NORMALIZED,
 
257
  seed = int(randomize_seed_fn(seed, randomize_seed))
258
  generator = torch.Generator().manual_seed(seed)
259
  # 初始化 Compel 实例
260
+ compel = Compel(
261
  tokenizer=[pipe.tokenizer, pipe.tokenizer_2],
262
  text_encoder=[pipe.text_encoder, pipe.text_encoder_2],
263
  returned_embeddings_type=ReturnedEmbeddingsType.PENULTIMATE_HIDDEN_STATES_NON_NORMALIZED,