Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
70e5835
1
Parent(s):
e0de939
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ from huggingface_hub import hf_hub_download
|
|
21 |
#quantize(controlnet, weights=qfloat8)
|
22 |
#freeze(controlnet)
|
23 |
|
24 |
-
text_encoder_2 = T5EncoderModel.from_pretrained(
|
25 |
quantize(text_encoder_2, weights=qfloat8)
|
26 |
freeze(text_encoder_2)
|
27 |
|
|
|
21 |
#quantize(controlnet, weights=qfloat8)
|
22 |
#freeze(controlnet)
|
23 |
|
24 |
+
text_encoder_2 = T5EncoderModel.from_pretrained("black-forest-labs/FLUX.1-dev", subfolder="text_encoder_2", torch_dtype=dtype)
|
25 |
quantize(text_encoder_2, weights=qfloat8)
|
26 |
freeze(text_encoder_2)
|
27 |
|