Spaces:
Running
on
Zero
Running
on
Zero
parokshsaxena
commited on
Commit
β’
6b4235a
1
Parent(s):
0d190e1
moving imports below space import
Browse files
app.py
CHANGED
@@ -5,7 +5,6 @@ from PIL import Image
|
|
5 |
from src.tryon_pipeline import StableDiffusionXLInpaintPipeline as TryonPipeline
|
6 |
from src.unet_hacked_garmnet import UNet2DConditionModel as UNet2DConditionModel_ref
|
7 |
from src.unet_hacked_tryon import UNet2DConditionModel
|
8 |
-
from src.background_processor import BackgroundProcessor
|
9 |
from transformers import (
|
10 |
CLIPImageProcessor,
|
11 |
CLIPVisionModelWithProjection,
|
@@ -27,6 +26,7 @@ from preprocess.humanparsing.run_parsing import Parsing
|
|
27 |
from preprocess.openpose.run_openpose import OpenPose
|
28 |
from detectron2.data.detection_utils import convert_PIL_to_numpy,_apply_exif_orientation
|
29 |
from torchvision.transforms.functional import to_pil_image
|
|
|
30 |
|
31 |
def pil_to_binary_mask(pil_image, threshold=0):
|
32 |
np_image = np.array(pil_image)
|
|
|
5 |
from src.tryon_pipeline import StableDiffusionXLInpaintPipeline as TryonPipeline
|
6 |
from src.unet_hacked_garmnet import UNet2DConditionModel as UNet2DConditionModel_ref
|
7 |
from src.unet_hacked_tryon import UNet2DConditionModel
|
|
|
8 |
from transformers import (
|
9 |
CLIPImageProcessor,
|
10 |
CLIPVisionModelWithProjection,
|
|
|
26 |
from preprocess.openpose.run_openpose import OpenPose
|
27 |
from detectron2.data.detection_utils import convert_PIL_to_numpy,_apply_exif_orientation
|
28 |
from torchvision.transforms.functional import to_pil_image
|
29 |
+
from src.background_processor import BackgroundProcessor
|
30 |
|
31 |
def pil_to_binary_mask(pil_image, threshold=0):
|
32 |
np_image = np.array(pil_image)
|