Ashoka74 commited on
Commit
ef970f7
1 Parent(s): 917c9b5

Update app_2.py

Browse files
Files changed (1) hide show
  1. app_2.py +3 -0
app_2.py CHANGED
@@ -12,6 +12,8 @@ import datetime
12
  from pathlib import Path
13
  from io import BytesIO
14
 
 
 
15
  from PIL import Image
16
  from diffusers import StableDiffusionPipeline, StableDiffusionImg2ImgPipeline
17
  from diffusers import AutoencoderKL, UNet2DConditionModel, DDIMScheduler, EulerAncestralDiscreteScheduler, DPMSolverMultistepScheduler
@@ -34,6 +36,7 @@ import cv2
34
 
35
  from transformers import AutoModelForImageSegmentation
36
  from inference_i2mv_sdxl import prepare_pipeline, remove_bg, run_pipeline
 
37
 
38
 
39
  from typing import Optional
 
12
  from pathlib import Path
13
  from io import BytesIO
14
 
15
+
16
+
17
  from PIL import Image
18
  from diffusers import StableDiffusionPipeline, StableDiffusionImg2ImgPipeline
19
  from diffusers import AutoencoderKL, UNet2DConditionModel, DDIMScheduler, EulerAncestralDiscreteScheduler, DPMSolverMultistepScheduler
 
36
 
37
  from transformers import AutoModelForImageSegmentation
38
  from inference_i2mv_sdxl import prepare_pipeline, remove_bg, run_pipeline
39
+ from torchvision import transforms
40
 
41
 
42
  from typing import Optional