Spaces:
Running
on
L40S
Running
on
L40S
Commit
•
b2c0d50
1
Parent(s):
1aef295
Update app.py
Browse files
app.py
CHANGED
@@ -5,15 +5,11 @@ import torch
|
|
5 |
import spaces
|
6 |
from PIL import Image
|
7 |
import os
|
8 |
-
from pipeline_flux_ipa import FluxPipeline
|
9 |
-
from transformer_flux import FluxTransformer2DModel
|
10 |
-
from attention_processor import IPAFluxAttnProcessor2_0
|
11 |
|
12 |
from models.transformer_sd3 import SD3Transformer2DModel
|
13 |
from pipeline_stable_diffusion_3_ipa import StableDiffusion3Pipeline
|
14 |
|
15 |
from transformers import AutoProcessor, SiglipVisionModel
|
16 |
-
from infer_flux_ipa_siglip import MLPProjModel, IPAdapter
|
17 |
from huggingface_hub import hf_hub_download
|
18 |
|
19 |
|
@@ -32,7 +28,7 @@ transformer = SD3Transformer2DModel.from_pretrained(
|
|
32 |
torch_dtype=torch.bfloat16
|
33 |
)
|
34 |
|
35 |
-
pipe =
|
36 |
model_path,
|
37 |
transformer=transformer,
|
38 |
torch_dtype=torch.bfloat16
|
|
|
5 |
import spaces
|
6 |
from PIL import Image
|
7 |
import os
|
|
|
|
|
|
|
8 |
|
9 |
from models.transformer_sd3 import SD3Transformer2DModel
|
10 |
from pipeline_stable_diffusion_3_ipa import StableDiffusion3Pipeline
|
11 |
|
12 |
from transformers import AutoProcessor, SiglipVisionModel
|
|
|
13 |
from huggingface_hub import hf_hub_download
|
14 |
|
15 |
|
|
|
28 |
torch_dtype=torch.bfloat16
|
29 |
)
|
30 |
|
31 |
+
pipe = StableDiffusion3Pipeline.from_pretrained(
|
32 |
model_path,
|
33 |
transformer=transformer,
|
34 |
torch_dtype=torch.bfloat16
|