Skip to content

Commit

Permalink
Add more info
Browse files Browse the repository at this point in the history
  • Loading branch information
bghira committed Jul 8, 2023
1 parent 4928395 commit 5a07e07
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions discord_tron_client/message/discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ def print_prompt(payload, execute_duration = "unknown"):
negative_aesthetic_score = str(user_config.get('negative_aesthetic_score'))
if "refiner_strength" in user_config:
refiner_strength = str(user_config.get('refiner_strength'))
guidance_rescale = user_config.get("guidance_rescale")
if latent_refiner == "On":
latent_refiner = f"{latent_refiner}, **Strength**: {refiner_strength}, **Steps**: {refiner_steps}, **Guidance**: {refiner_guidance}, **Aesthetic Score**: {aesthetic_score}, **Negative Aesthetic Score**: {negative_aesthetic_score}"
latent_refiner = f"{latent_refiner}, **refiner_strength**: {refiner_strength}, **refiner_steps**: {refiner_steps}, **refiner_guidance**: {refiner_guidance}, **aesthetic_score**: {aesthetic_score}, **negative_aesthetic_score**: {negative_aesthetic_score}"
if model_id == "ptx0/s1" and latent_refiner == "Off":
model_id = "SDXL Base"
elif model_id == "ptx0/s1" and latent_refiner != "Off":
Expand All @@ -107,7 +108,7 @@ def print_prompt(payload, execute_duration = "unknown"):
vmem = int(system_hw["video_memory_amount"])
return (
f"**<@{author_id}>'s Prompt**: {prompt}\n"
f"**Seed**: `!seed {seed}`, **Guidance**: {user_config['guidance_scaling']}, **Steps**: `!steps {steps}`, **Strength (img2img)**: {strength}\n"
f"**Seed**: `!seed {seed}`, **!guidance** {user_config['guidance_scaling']}, **!settings guidance_rescale** {guidance_rescale}, **!steps** {steps}`, **!settings strength** {strength}\n"
f"**Model**: `{model_id}`, **SDXL Refiner**: {latent_refiner}\n"
f"**Resolution**: "
+ str(resolution["width"])
Expand Down

0 comments on commit 5a07e07

Please sign in to comment.