Hello! I understand you're working with ComfyUI and the HiDream module for image-to-image editing, and you're trying to change your wife's outfit on a photo while keeping everything else intact. It's common for AI models to sometimes alter unintended elements like the face or pose, even with instructions to preserve them. The issue might be that your original prompt isn't emphatic enough, so let's refine it to make the instructions clearer and more specific.
How to Improve Your Prompt
To emphasize preserving the person (including their face, position, scale, and pose) while only changing the outfit, you should:
-
Be more explicit and structured in your prompt: Start with the main changes you want (e.g., the new outfit), then dedicate a separate section to what must remain unchanged. Use strong, direct language to "lock in" the original elements.
-
Add negative instructions: Explicitly state what not to change. This can help the AI avoid common pitfalls like altering the face or pose.
-
Prioritize key elements: Mention the face, body structure, and pose early and often in the prompt to guide the model.
Here's a revised version of your prompt. I'll provide a template you can customize based on the specific outfit you want to change to:
Suggested Prompt Template:
Change the outfit of the woman in the image to [describe the new outfit in detail, e.g., "a elegant red evening dress with long sleeves"]. Ensure the woman's face, body structure, pose, position, and scale remain identical to the original photo. Do not alter her facial features, expression, or any part of her body in any way. Keep the background exactly the same, with no changes to lighting, colors, or elements. Focus only on the clothing while preserving the entire person as in the original image.
Example with Specifics:
If you want to change the outfit to a casual summer dress, your full prompt could look like this:
Edit the photo to change the woman's outfit to a light blue summer dress with floral patterns and short sleeves. Keep her face, body pose, position, and scale exactly as they are in the original image. Do not modify her facial features, skin tone, hair, or any aspect of her body or pose. The background must remain unchanged, including all details, lighting, and composition. Prioritize maintaining the original person's identity and exact appearance.
Why This Might Work Better:
- Specificity on preservation: Phrases like "Keep her face, body pose, position, and scale exactly as they are" and "Do not modify her facial features" directly address the issues you're seeing. This helps the AI model focus on only the intended changes.
- Separation of instructions: By clearly separating the "what to change" from the "what to keep," you reduce the chance of the AI interpreting the prompt ambiguously.
- Negative prompts (if supported): In ComfyUI with HiDream, you might have an option for negative prompts. If available, add something like: "Negative: changing face, altering pose, shifting position, modifying background." This tells the model to actively avoid those elements.
Additional Tips for ComfyUI and HiDream:
-
Strength or Weight Parameters: If HiDream allows you to adjust prompt weights (e.g., using parentheses like (keep face exactly the same:1.5)), you could emphasize preservation more. For example:
Change the outfit... (Keep her face exactly the same:1.5) (Do not alter pose:1.5)
This gives more "weight" to the instructions you care about most.
-
Image Input Settings: Double-check your workflow in ComfyUI. Ensure the original image is set as the base with a low "strength" value for the image-to-image process (e.g., 0.3–0.5). This keeps more of the original details intact while applying changes.
-
Test Iteratively: Start with a simple test prompt and gradually add details. Generate a few variations to see what works best with your specific setup, as AI models can be sensitive to wording.
If you share more details about your current prompt or the exact HiDream workflow you're using, I can refine this advice further. Let me know how it goes—I hope this helps you get the results you're looking for! 😊