Upload src/pipeline.py with huggingface_hub
Browse files- src/pipeline.py +1 -1
src/pipeline.py
CHANGED
@@ -38,7 +38,7 @@ def load_pipeline() -> Pipeline:
|
|
38 |
torch_dtype=torch.bfloat16,
|
39 |
).to("cuda")
|
40 |
|
41 |
-
|
42 |
for _ in range(4):
|
43 |
pipeline("cat", num_inference_steps=4)
|
44 |
|
|
|
38 |
torch_dtype=torch.bfloat16,
|
39 |
).to("cuda")
|
40 |
|
41 |
+
pipeline.to(memory_format=torch.channels_last)
|
42 |
for _ in range(4):
|
43 |
pipeline("cat", num_inference_steps=4)
|
44 |
|