Channels_first
Browse files- src/pipeline.py +1 -1
src/pipeline.py
CHANGED
@@ -43,7 +43,7 @@ def load_pipeline() -> Pipeline:
|
|
43 |
torch_dtype=torch.bfloat16,
|
44 |
)
|
45 |
pipeline.to("cuda")
|
46 |
-
pipeline.transformer.to(memory_format=torch.channels_last)
|
47 |
pipeline.transformer = torch.compile(pipeline.transformer)
|
48 |
# pipeline.text_encoder.fuse_qkv_projections()
|
49 |
# pipeline.vae = torch.compile(pipeline.vae)
|
|
|
43 |
torch_dtype=torch.bfloat16,
|
44 |
)
|
45 |
pipeline.to("cuda")
|
46 |
+
# pipeline.transformer.to(memory_format=torch.channels_last)
|
47 |
pipeline.transformer = torch.compile(pipeline.transformer)
|
48 |
# pipeline.text_encoder.fuse_qkv_projections()
|
49 |
# pipeline.vae = torch.compile(pipeline.vae)
|