what prompt did you use to enhance the data using Novel AI?

#2
by deleted - opened
deleted

Hi! Could you share the prompt that you used to enhance the data with Novel AI?

hair_style = [
    "ahoge",
    ["curly hair", "drill hair","bangs", "blunt bangs","double bun","ponytail", "short ponytail", "twintails","messy hair","hime cut","braid","twin braids", "wavy hair","bowl cut", "bob cut"],
    ["short hair", "medium hair", "long hair","very long hair"],
    ["animal ears","fox ears","bunny ears","cat ears","dog ears","mouse ears", "pointy ears"],
    "shiny hair","flipped hair","hair intakes",
    ["french braid","crown braid","side braid","low twin braids"],
    ["multicolored hair","gradient hair","colored inner hair"],
    "half updo","hair pulled back","bow-shaped hair","topknot","hair flaps", "eyes visible through hair"
]
expression_style=[
    ["parted lips","parted lips","open mouth","closed mouth"],
    ["tongue out","teeth", "fang","licking lips","clenched teeth","smile","light smile","grin","evil smile", "smirk","smug doyagao","seductive smile",">_<","x3","x3","0_0","^_^","=_=",":3",":D",":p", ":>",":<",":o","^_^"],
    ["closed eyes","one eye closed","half-closed eyes","squinting","empty eyes","wide-eyed","glowing eyes"],
    ["constricted pupils","horizontal pupils","slit pupils", "aqua_eyes", "heart-shaped pupils", "symbol-shaped pupils", "no pupils","bright pupils"],
    ["blush", "embarrassed", "embarrassed"],
    ["naughty face","wince","shaded face", "disgust","annoyed","nervous", "confused","scared", "pain", "screaming", "surprised", "turn pale", "sad", "depressed", "sigh", "expressionless", "sleepy", "serious", "frown", "v shaped eyebrows", "furrowed brow raised eyebrows", "raised eyebrow"]
]
costume_style=[
    ["bikini", "string bikini", "untied bikini", "front-tie bikini","side-tie bikini", "micro bikini", "swimsuit", "one-piece swimsuit", "school swimsuit","competition swimsuit", "highleg swimsuit","sportswear","volleyball uniform", "china dress", "serafuku", "school uniform", "buruma", "kimono", "collared shirt","leotard","strapless leotard","highleg leotard","taut shirt", "sheer tulle dress", "chiffon dress", "tank top", "dress", "halter dress","sweater dress", "nightgown", "coat", "sweater", "shoulder cutout","heart cutout", "underboob cutout", "corset", "crop top", "latex","skirt", "miniskirt", "pleated skirt", "pencil skirt","leggings","shorts", "denim shorts", "pants", "yoga pants", "apron","miko","gothic","lolita fashion","zettai ryouiki","topless","bottomless","polka dot","striped","frills","robe","wedding dress","bodysuit","bodystocking","underwear","lingerie","camisole","midriff","pajamas","babydoll","hoodie","yukata","japanese clothes","chinese clothes","formal","uniform","sarashi","apron","obi","skirt","bloomers","shorts","panties","side-tie panties","himopan","waitress","cheerleader","fairy","elf","angel", "vampire", "magical girl","loli","hakama","hood"],
    ["sleeves","detached sleeves","wide sleeves", "ribbon-trimmed sleeves", "sleeveless","long sleeves", "wrist cuffs","off shoulder","bare shoulders","cleavage","bare_legs"],
    ["pantyhose", "thighhighs", "kneehighs", "garter belt","socks", "toeless legwear", "black stocking", "white stocking","garter straps","striped socks","fishnets","fishnet stockings",""],
    ["high heels", "sneakers", "cross-laced footwear", "boots", "no shoes"],
    ["gloves", "elbow gloves", "fingerless gloves", "bridal gauntlets"]

]
accessory_style=[
    "rabbit tail","suspenders", "scarf","maid headdress","belt", "ribbon","hair ribbon","hair ribbon","hair ribbon", "neck ribbon", "thigh strap", "bridal veil", "halo", "wings","bell","tassel","hair ornament","hair rings", "hairclip","hair flower","hair bow","hair bow","hair bow", "hair stick","crown","hairband","hair ornament","bowtie","maid headdress","lace","glasses","sunglasses","earrings","jewelry","collar","choker","armband","armlet","wristband","bracelet","cane","leg garter","ankle lace-up"
]
breast_style=[
    ["breasts","flat chest","small breasts","medium breasts","large breasts"]
]
color_style=[
    ["blonde hair","silver hair","grey hair", "white hair", "brown hair","black hair", "purple hair", "red hair", "blue hair","green hair"],
    ["yellow eyes","silver eyes","grey eyes", "white eyes", "brown eyes","black eyes", "purple eyes", "red eyes", "blue eyes","green eyes","heterochromia"]
]
all_styles = {"hair_style":hair_style,"expression_style":expression_style,"costume_style":costume_style,"accessory_style":accessory_style,"breast_style":breast_style,"color_style":color_style}

def get_style():
    all_style_sample = []
    for styles in all_styles.values():
        style_sample = random.sample(styles,random.randint(0, min(len(styles),4)))
        for i, style in enumerate(style_sample):
            if isinstance(style, list):
                style_sample[i]=random.choice(style)
        all_style_sample += style_sample
    costume_colors = ["yellow costume", "grey costume", "white costume", "brown costume", "black costume",
                      "purple costume", "red costume", "blue costume", "green costume"]
    all_style_sample.append(random.choice(costume_colors))
    all_style_sample = set(all_style_sample)
    return ", ".join(all_style_sample)


def gen_img(init_img_path):
    imgs = [Image.open(init_img_path[0]), Image.open(init_img_path[1])] * 4
    neg_prompt = "(out of frame, perspective, multiple views),lowres, bad anatomy, error body, error hair, error arm, ((3+arms, multiple arms)), error hands, bad hands,((3+hands, multiple hands)), error fingers, bad  fingers, missing fingers, error legs, bad legs, ((3+legs, multiple legs,3+feet, multiple feet,)), missing legs, error lighting, error shadow, error reflection, text, error, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, greyscale, monochrome, dark, nipples"
    prompts = []
    for i in range(0,8):
        prompt = "best quality, 1girl, (full body:1.2), standing, straight-on, looking at viewer, white background, simple background"
        if random.randint(0,3) == 0:
            prompt += ", cute"
            if random.randint(0, 2) == 0:
                prompt += ", loli"
        if i%4 >=2:
            prompt += ", " + get_style()
        prompts.append(prompt)
    images = pipeline.img2img(prompts,[neg_prompt]*8,init_image=imgs, num_inference_steps=50, guidance_scale=7.0, strength=0.8, max_embeddings_multiples=5).images
    images = [img for img in images if np.array(img).sum() / (1024 * 512 * 3) > 50] #prevent black image
    return images
pipe = DiffusionPipeline.from_pretrained("./novelai-diffusion", torch_dtype=torch.float16, custom_pipeline="lpw_stable_diffusion")
pipe.safety_checker = None
pipe = pipe.to("cuda")
deleted changed discussion status to closed

Sign up or log in to comment