Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,5 @@
|
|
| 1 |
-
import
|
| 2 |
-
from
|
| 3 |
-
from src.tryon_pipeline import StableDiffusionXLInpaintPipeline as TryonPipeline
|
| 4 |
-
from src.unet_hacked_garmnet import UNet2DConditionModel as UNet2DConditionModel_ref
|
| 5 |
-
from src.unet_hacked_tryon import UNet2DConditionModel
|
| 6 |
from transformers import (
|
| 7 |
CLIPImageProcessor,
|
| 8 |
CLIPVisionModelWithProjection,
|
|
@@ -10,11 +7,14 @@ from transformers import (
|
|
| 10 |
CLIPTextModelWithProjection,
|
| 11 |
)
|
| 12 |
from diffusers import DDPMScheduler,AutoencoderKL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
from typing import List
|
| 14 |
|
| 15 |
-
import torch
|
| 16 |
import os
|
| 17 |
-
from transformers import AutoTokenizer
|
| 18 |
import spaces
|
| 19 |
import numpy as np
|
| 20 |
from utils_mask import get_mask_location
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from transformers import AutoTokenizer
|
|
|
|
|
|
|
|
|
|
| 3 |
from transformers import (
|
| 4 |
CLIPImageProcessor,
|
| 5 |
CLIPVisionModelWithProjection,
|
|
|
|
| 7 |
CLIPTextModelWithProjection,
|
| 8 |
)
|
| 9 |
from diffusers import DDPMScheduler,AutoencoderKL
|
| 10 |
+
import gradio as gr
|
| 11 |
+
from PIL import Image
|
| 12 |
+
from src.tryon_pipeline import StableDiffusionXLInpaintPipeline as TryonPipeline
|
| 13 |
+
from src.unet_hacked_garmnet import UNet2DConditionModel as UNet2DConditionModel_ref
|
| 14 |
+
from src.unet_hacked_tryon import UNet2DConditionModel
|
| 15 |
from typing import List
|
| 16 |
|
|
|
|
| 17 |
import os
|
|
|
|
| 18 |
import spaces
|
| 19 |
import numpy as np
|
| 20 |
from utils_mask import get_mask_location
|