XuDongZhou commited on
Commit
49091f8
·
verified ·
1 Parent(s): 451d16c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -132,8 +132,8 @@ def get_example():
132
  "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green",
133
  ],
134
  [
135
- "./examples/1.jpeg",
136
- "./examples/poses/pose1.jpg",
137
  "a woman,(looking at the viewer), portrait, daily wear, 8K texture, realistic, symmetrical hyperdetailed texture, masterpiece, enhanced details, (eye highlight:2), perfect composition, natural lighting, best quality, authentic, natural posture",
138
  "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green",
139
  ],
@@ -243,7 +243,7 @@ def generate_image(
243
  prompt = "a person"
244
 
245
  # apply the style template
246
- prompt, negative_prompt = apply_style(style_name, prompt, negative_prompt)
247
 
248
  face_image = load_image(face_image_path)
249
  face_image = resize_img(face_image, max_side=1024)
 
132
  "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green",
133
  ],
134
  [
135
+ "./examples/1.jpg",
136
+ "./examples/pose/pose1.jpg",
137
  "a woman,(looking at the viewer), portrait, daily wear, 8K texture, realistic, symmetrical hyperdetailed texture, masterpiece, enhanced details, (eye highlight:2), perfect composition, natural lighting, best quality, authentic, natural posture",
138
  "(lowres, low quality, worst quality:1.2), (text:1.2), watermark, (frame:1.2), deformed, ugly, deformed eyes, blur, out of focus, blurry, deformed cat, deformed, photo, anthropomorphic cat, monochrome, photo, pet collar, gun, weapon, blue, 3d, drones, drone, buildings in background, green",
139
  ],
 
243
  prompt = "a person"
244
 
245
  # apply the style template
246
+ # prompt, negative_prompt = apply_style(style_name, prompt, negative_prompt)
247
 
248
  face_image = load_image(face_image_path)
249
  face_image = resize_img(face_image, max_side=1024)