Upload app.py
Browse files
app.py
CHANGED
|
@@ -164,7 +164,7 @@ def resize_img(input_image, max_side=640, min_side=512, size=None,
|
|
| 164 |
def dress_process(garm_img, face_img, pose_img, prompt, cloth_guidance_scale, caption_guidance_scale,
|
| 165 |
face_guidance_scale,self_guidance_scale, cross_guidance_scale,if_ipa, if_post, if_control, denoise_steps, seed=42):
|
| 166 |
image_face_fusion = pipeline('face_fusion_torch', model='damo/cv_unet_face_fusion_torch',
|
| 167 |
-
model_revision='v1.0.3'
|
| 168 |
if prompt is None:
|
| 169 |
prompt = "a photography of a model"
|
| 170 |
prompt = prompt + ', best quality, high quality'
|
|
@@ -257,8 +257,6 @@ face_list = os.listdir(os.path.join(example_path,"face"))
|
|
| 257 |
face_list_path = [os.path.join(example_path,"face",face) for face in face_list]
|
| 258 |
|
| 259 |
pose_list = os.listdir(os.path.join(example_path,"pose"))
|
| 260 |
-
print(pose_list)
|
| 261 |
-
print('====', len(pose_list))
|
| 262 |
pose_list_path = [os.path.join(example_path,"pose",pose) for pose in pose_list]
|
| 263 |
|
| 264 |
def process_image(image):
|
|
|
|
| 164 |
def dress_process(garm_img, face_img, pose_img, prompt, cloth_guidance_scale, caption_guidance_scale,
|
| 165 |
face_guidance_scale,self_guidance_scale, cross_guidance_scale,if_ipa, if_post, if_control, denoise_steps, seed=42):
|
| 166 |
image_face_fusion = pipeline('face_fusion_torch', model='damo/cv_unet_face_fusion_torch',
|
| 167 |
+
model_revision='v1.0.3')
|
| 168 |
if prompt is None:
|
| 169 |
prompt = "a photography of a model"
|
| 170 |
prompt = prompt + ', best quality, high quality'
|
|
|
|
| 257 |
face_list_path = [os.path.join(example_path,"face",face) for face in face_list]
|
| 258 |
|
| 259 |
pose_list = os.listdir(os.path.join(example_path,"pose"))
|
|
|
|
|
|
|
| 260 |
pose_list_path = [os.path.join(example_path,"pose",pose) for pose in pose_list]
|
| 261 |
|
| 262 |
def process_image(image):
|