manbeast3b commited on
Commit
a57b03a
·
verified ·
1 Parent(s): b842cf8

Update src/pipeline.py

Browse files
Files changed (1) hide show
  1. src/pipeline.py +2 -1
src/pipeline.py CHANGED
@@ -6,12 +6,13 @@ from PIL import Image
6
  from pipelines.models import TextToImageRequest # Assuming this defines your request object
7
  import os
8
 
 
9
  # Consistent environment variable setting
10
  os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "max_split_size_mb:128" # More robust memory management
11
 
12
  ckpt_id = "black-forest-labs/FLUX.1-schnell"
13
 
14
- def load_pipeline():
15
  gc.collect()
16
  torch.cuda.empty_cache()
17
 
 
6
  from pipelines.models import TextToImageRequest # Assuming this defines your request object
7
  import os
8
 
9
+ Pipeline = None
10
  # Consistent environment variable setting
11
  os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "max_split_size_mb:128" # More robust memory management
12
 
13
  ckpt_id = "black-forest-labs/FLUX.1-schnell"
14
 
15
+ def load_pipeline() -> Pipeline:
16
  gc.collect()
17
  torch.cuda.empty_cache()
18