|
|
@@ -260,7 +260,7 @@ class DetailPicGet(DetailBase):
|
|
|
bg_color=self.base_bg_color,
|
|
|
)
|
|
|
# tips = "一只鞋放置在向日葵花园的草地上,鞋子后面有一块石头,石头上还有一只小猫,鞋得前面还有一条小溪,这就要求鞋子的角度、材质、纹理保持不变,背景要求富有创意且有真实感"
|
|
|
- tips = "The shoes are placed on a light green background.The sun shines from one side, creating a soft shadow effect, and the overall style is fresh and natural, suitable for summer wear. Keep the texture and material of this shoe intact"
|
|
|
+ tips = "The shoes are placed on a neutral beige tone background.The sun shines from one side, creating a soft shadow effect, and the overall style is fresh and natural, suitable for summer wear. Keep the texture and material of this shoe intact"
|
|
|
imageGenerateResult = self.getAiGenerateScenes(image_path=pp_jpg.im, tips=tips)
|
|
|
if imageGenerateResult == None:
|
|
|
return PictureProcessing(im=self.add_pic(detailed_images))
|
|
|
@@ -279,6 +279,18 @@ class DetailPicGet(DetailBase):
|
|
|
real_bg = real_bg.paste_img(top_img=text_image, base="cc", value=(0, 100))
|
|
|
detailed_images.append(real_bg)
|
|
|
detailed_images.append(imageGenerateResult)
|
|
|
+ tips = "The image showcases a half-body shot of a model dressed in a gray dress and white ankle socks. The model is taking a step forward, with one foot slightly ahead. The shoes are precisely fitted to the model's feet, ensuring they are neither too large nor too small, with a subtly elevated heel. The background is a simple neutral beige, creating a clean and distraction-free visual effect. Throughout the process, it is essential to preserve the original texture and style of the shoes, including their unique design features and material feel, making the shoes appear realistic and natural as if truly worn by the model."
|
|
|
+ imageGenerateResult = self.getAiGenerateScenes(image_path=pp_jpg.im, tips=tips)
|
|
|
+ if imageGenerateResult == None:
|
|
|
+ detailed_images.append(
|
|
|
+ PictureProcessing("RGB", (temp_bg.width, 300), self.base_bg_color)
|
|
|
+ )
|
|
|
+ return PictureProcessing(im=self.add_pic(detailed_images))
|
|
|
+ imageGenerateResult = imageGenerateResult.resize(value=temp_bg.width)
|
|
|
+ imageGenerateResult = imageGenerateResult.radius(
|
|
|
+ value=30, circular_pos=(1, 1, 1, 1)
|
|
|
+ )
|
|
|
+ detailed_images.append(imageGenerateResult)
|
|
|
detailed_images.append(
|
|
|
PictureProcessing("RGB", (temp_bg.width, 300), self.base_bg_color)
|
|
|
)
|