Update src/pipeline.py
Browse files- src/pipeline.py +2 -2
src/pipeline.py
CHANGED
|
@@ -144,8 +144,8 @@ def load_pipeline() -> Pipeline:
|
|
| 144 |
pipeline.text_encoder.to(memory_format=torch.channels_last)
|
| 145 |
pipeline.text_encoder_2.to(memory_format=torch.channels_last)
|
| 146 |
pipeline.transformer.to(memory_format=torch.channels_last)
|
| 147 |
-
pipeline._exclude_from_cpu_offload = ["vae"]
|
| 148 |
-
pipeline.enable_sequential_cpu_offload()
|
| 149 |
for _ in range(2):
|
| 150 |
pipeline(prompt="onomancy, aftergo, spirantic, Platyhelmia, modificator, drupaceous, jobbernowl, hereness", width=1024, height=1024, guidance_scale=0.0, num_inference_steps=4, max_sequence_length=256)
|
| 151 |
|
|
|
|
| 144 |
pipeline.text_encoder.to(memory_format=torch.channels_last)
|
| 145 |
pipeline.text_encoder_2.to(memory_format=torch.channels_last)
|
| 146 |
pipeline.transformer.to(memory_format=torch.channels_last)
|
| 147 |
+
# pipeline._exclude_from_cpu_offload = ["vae"]
|
| 148 |
+
# pipeline.enable_sequential_cpu_offload()
|
| 149 |
for _ in range(2):
|
| 150 |
pipeline(prompt="onomancy, aftergo, spirantic, Platyhelmia, modificator, drupaceous, jobbernowl, hereness", width=1024, height=1024, guidance_scale=0.0, num_inference_steps=4, max_sequence_length=256)
|
| 151 |
|