Skip to content

Commit

Permalink
🎨 refactor(readme, generate_image): update image prompts and settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoskys committed Jan 5, 2025
1 parent 601084b commit 9461a68
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ load_dotenv()
session = ApiCredential(api_token=SecretStr(os.getenv("NOVELAI_JWT"))) # pst-***
# For security reasons, storing user credentials in plaintext is strongly discouraged.

prompt = "1girl, year 2023, dynamic angle"
prompt = "1girl, fisheye, closeup, from above, head tilt, short hair, black hair, grey eyes, small breasts"


async def main():
Expand Down
13 changes: 8 additions & 5 deletions playground/generate_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


async def generate(
prompt="1girl, year 2023, dynamic angle"
prompt="2girls, fisheye, closeup, from above"
):
jwt = os.getenv("NOVELAI_JWT", None)
if jwt is None:
Expand All @@ -46,16 +46,19 @@ async def generate(
try:
agent = GenerateImageInfer.build_generate(
prompt=prompt,
width=1216,
height=832,
model=Model.NAI_DIFFUSION_4_CURATED_PREVIEW,
character_prompts=[
Character(
prompt="1girl",
prompt="1girl, head tilt, short hair, black hair, grey eyes, small breasts, looking at viewer",
uc="red hair",
center=PositionMap.AUTO
center=PositionMap.B2
),
Character(
prompt="1boy",
center=PositionMap.E5
prompt="1girl, fox ears, fox tail, kitsunemimi, kitsune, white hair, white tail, white ears, white kitsune, white kitsunemimi",
uc="white hair",
center=PositionMap.D2
)
],
sampler=Sampler.K_EULER_ANCESTRAL,
Expand Down

0 comments on commit 9461a68

Please sign in to comment.