Update src/pipeline.py
Browse files- src/pipeline.py +1 -1
src/pipeline.py
CHANGED
|
@@ -31,7 +31,7 @@ def load_pipeline() -> Pipeline:
|
|
| 31 |
torch_dtype=dtype,
|
| 32 |
)#.to("cuda")
|
| 33 |
pipeline.transformer.to(memory_format=torch.channels_last)
|
| 34 |
-
pipeline.text_encoder.to(memory_format=torch.channels_last)
|
| 35 |
|
| 36 |
# Optimize after moving to GPU
|
| 37 |
pipeline.vae = torch.compile(pipeline.vae) # compile after moving to device
|
|
|
|
| 31 |
torch_dtype=dtype,
|
| 32 |
)#.to("cuda")
|
| 33 |
pipeline.transformer.to(memory_format=torch.channels_last)
|
| 34 |
+
# pipeline.text_encoder.to(memory_format=torch.channels_last)
|
| 35 |
|
| 36 |
# Optimize after moving to GPU
|
| 37 |
pipeline.vae = torch.compile(pipeline.vae) # compile after moving to device
|