Menyu commited on
Commit
7fe735f
·
verified ·
1 Parent(s): 0dca0cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,8 +23,8 @@ if torch.cuda.is_available():
23
  )
24
  #pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing")
25
  # 加载支持更长序列的 Tokenizer 和文本编码器
26
- tokenizer = CLIPTokenizer.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", model_max_length=512)
27
- text_encoder = CLIPTextModel.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", trust_remote_code=True)
28
 
29
  # 更新 pipeline
30
  pipe.tokenizer = tokenizer
 
23
  )
24
  #pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing")
25
  # 加载支持更长序列的 Tokenizer 和文本编码器
26
+ tokenizer = CLIPTokenizer.from_pretrained("John6666/noobai-xl-nai-xl-epsilonpred075version-sdxl", model_max_length=512)
27
+ text_encoder = CLIPTextModel.from_pretrained("John6666/noobai-xl-nai-xl-epsilonpred075version-sdxl", trust_remote_code=True)
28
 
29
  # 更新 pipeline
30
  pipe.tokenizer = tokenizer