ford442 commited on
Commit
725bdfd
·
verified ·
1 Parent(s): 1090a83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -86,9 +86,9 @@ pipe.to(device=device, dtype=torch.bfloat16)
86
  #pipe.to(device)
87
  pipe.vae=vaeX.to('cpu')
88
 
89
- text_encoder=CLIPTextModelWithProjection.from_pretrained("ford442/stable-diffusion-3.5-large-bf16", subfolder='text_encoder', torch_dtype=torch.bfloat16, token=True).to(device)
90
- text_encoder_2=CLIPTextModelWithProjection.from_pretrained("ford442/stable-diffusion-3.5-large-bf16", subfolder='text_encoder_2', torch_dtype=torch.bfloat16,token=True).to(device)
91
- text_encoder_3=T5EncoderModel.from_pretrained("ford442/stable-diffusion-3.5-large-bf16", subfolder='text_encoder_3', torch_dtype=torch.bfloat16,token=True).to(device)
92
 
93
  upscaler_2 = UpscaleWithModel.from_pretrained("Kim2091/ClearRealityV1").to('cpu') #.to(device)
94
 
 
86
  #pipe.to(device)
87
  pipe.vae=vaeX.to('cpu')
88
 
89
+ text_encoder=CLIPTextModelWithProjection.from_pretrained("ford442/stable-diffusion-3.5-large-bf16", subfolder='text_encoder', token=True).to(device=device, dtype=torch.bfloat16)
90
+ text_encoder_2=CLIPTextModelWithProjection.from_pretrained("ford442/stable-diffusion-3.5-large-bf16", subfolder='text_encoder_2',token=True).to(device=device, dtype=torch.bfloat16)
91
+ text_encoder_3=T5EncoderModel.from_pretrained("ford442/stable-diffusion-3.5-large-bf16", subfolder='text_encoder_3',token=True).to(device=device, dtype=torch.bfloat16)
92
 
93
  upscaler_2 = UpscaleWithModel.from_pretrained("Kim2091/ClearRealityV1").to('cpu') #.to(device)
94