slobers commited on
Commit
0de0224
·
verified ·
1 Parent(s): 7624b2a

Update src/pipeline.py

Browse files
Files changed (1) hide show
  1. src/pipeline.py +2 -2
src/pipeline.py CHANGED
@@ -4,7 +4,7 @@ from typing import TypeAlias
4
 
5
  import torch
6
  from PIL.Image import Image
7
- from diffusers import FluxPipeline, FluxTransformer2DModel, AutoencoderKL
8
  from huggingface_hub.constants import HF_HUB_CACHE
9
  from pipelines.models import TextToImageRequest
10
  from torch import Generator
@@ -23,7 +23,7 @@ def load_pipeline() -> Pipeline:
23
 
24
  path1 = os.path.join(HF_HUB_CACHE, "models--aifeifei798--taef1/snapshots/319774e8256cc42d98b3c2790ac2c5edc8a73389")
25
 
26
- vae = AutoencoderKL.from_pretrained(path1, torch_dtype=torch.bfloat16,)
27
 
28
  path = os.path.join(HF_HUB_CACHE, "models--RobertML--FLUX.1-schnell-int8wo/snapshots/307e0777d92df966a3c0f99f31a6ee8957a9857a")
29
 
 
4
 
5
  import torch
6
  from PIL.Image import Image
7
+ from diffusers import FluxPipeline, FluxTransformer2DModel, AutoencoderKL, AutoencoderTiny
8
  from huggingface_hub.constants import HF_HUB_CACHE
9
  from pipelines.models import TextToImageRequest
10
  from torch import Generator
 
23
 
24
  path1 = os.path.join(HF_HUB_CACHE, "models--aifeifei798--taef1/snapshots/319774e8256cc42d98b3c2790ac2c5edc8a73389")
25
 
26
+ vae = AutoencoderTiny.from_pretrained(path1, torch_dtype=torch.bfloat16,)
27
 
28
  path = os.path.join(HF_HUB_CACHE, "models--RobertML--FLUX.1-schnell-int8wo/snapshots/307e0777d92df966a3c0f99f31a6ee8957a9857a")
29