massimo ceraolo
commited on
Commit
•
f199c3e
1
Parent(s):
72d6ba3
new flux prompt
Browse files- inference.py +4 -1
inference.py
CHANGED
@@ -53,7 +53,7 @@ def generate_prompt_for_flux(user_prompt):
|
|
53 |
{
|
54 |
"role": "user",
|
55 |
"content": [
|
56 |
-
{"type": "text", "text": f"Generate a prompt for a diffusion model that is a more detailed version of the following prompt: {user_prompt}. Keep it succinct but more descriptive than the original. Just return
|
57 |
],
|
58 |
}
|
59 |
],
|
@@ -314,6 +314,9 @@ def main(prompt, control_image, index, metadata_df):
|
|
314 |
logging.info("\nStep 0: Generating a detailed prompt for the diffusion model...")
|
315 |
# Step 0: Generate a detailed prompt for the diffusion model
|
316 |
prompt = generate_prompt_for_flux(prompt)
|
|
|
|
|
|
|
317 |
logging.info(f"\nGenerated prompt: {prompt}")
|
318 |
|
319 |
logging.info("\nStep 1: Generating image...")
|
|
|
53 |
{
|
54 |
"role": "user",
|
55 |
"content": [
|
56 |
+
{"type": "text", "text": f"Generate a prompt for a diffusion model that is a more detailed version of the following prompt: {user_prompt}. Keep it succinct but more descriptive than the original. Just return a few words, listing possible relevant furniture elements and objects that will be present in the image. "},
|
57 |
],
|
58 |
}
|
59 |
],
|
|
|
314 |
logging.info("\nStep 0: Generating a detailed prompt for the diffusion model...")
|
315 |
# Step 0: Generate a detailed prompt for the diffusion model
|
316 |
prompt = generate_prompt_for_flux(prompt)
|
317 |
+
|
318 |
+
prompt += ", realistic, high quality, 8K"
|
319 |
+
|
320 |
logging.info(f"\nGenerated prompt: {prompt}")
|
321 |
|
322 |
logging.info("\nStep 1: Generating image...")
|