save code

This commit is contained in:
xsl
2025-08-10 23:54:29 +08:00
parent 7ac1bdde41
commit 9a28b272aa
+3 -2
View File
@@ -199,9 +199,9 @@ def generate_from_face(human_name, sex_girl):
prompt["93"]["inputs"]["image"] = human_name
if sex_girl:
prompt["6"]["inputs"]["text"] = "asian girl,full body shot(1.9),complete figure,front-facing,model pose,hands are at the sides of the body,smile,wearing black tube top and micro skirt,simple ,white background,32k,high detail,and face is illuminated by soft side light and natural light. The sunlight spills over the white wall behind."
prompt["6"]["inputs"]["text"] = "asian girl,full body shot(1.9), 8-head tall, complete figure,front-facing,model pose,hands are at the sides of the body,smile,wearing black tube top and micro skirt,simple ,white background,32k,high detail,and face is illuminated by soft side light and natural light. The sunlight spills over the white wall behind."
else:
prompt["6"]["inputs"]["text"] = "asian man,full body shot(1.9),complete figure,front-facing,model pose,hands are at the sides of the body,smile,wearing black tight shortst,simple white background,32k,high detail,and face is illuminated by soft side light and natural light. The sunlight spills over the white wall behind."
prompt["6"]["inputs"]["text"] = "asian man,full body shot(1.9), 8-head tall, complete figure,front-facing,model pose,hands are at the sides of the body,smile,wearing black tight shortst,simple white background,32k,high detail,and face is illuminated by soft side light and natural light. The sunlight spills over the white wall behind."
#out put name
out_img_name = str(uuid.uuid4())[:8]
@@ -263,6 +263,7 @@ def change(human_name, cloth_name, c_width, c_height, cloth_url, human_url, no2)
if sgwzd >= 0.55:
#脱衣服
takeoff_file_name = takeoff_cloth_first(human_name, sex_girl)
print(f"takeoff_file_name:{takeoff_file_name} human_name:{human_name} sex_girl:{sex_girl}")
if takeoff_file_name == None:
return None, None, sex_girl, f"takeoff_cloth_first error {human_name}"
else: