dreamshaper-8LCM-im-GGUF-sdcpp / train_imatrix.ps1
stduhpf's picture
Update train_imatrix.ps1
b0051c4 verified
$modelPath = "..\ComfyUI\models\checkpoints\sd1.x\dreamshaper_8LCM.safetensors"
$prompts = @(
"",
"a photo of a cat",
"a photo of a dog",
"a photo of a bird",
"a stunning landscape painting",
"a futuristic cityscape",
"a portrait of a wise old wizard",
"ultra detailed 8k cg, japanese ramen, chopsticks, egg, steam, boken",
"portrait photo of muscular bearded guy in a worn mech suit, light bokeh, intricate, steel metal, elegant, sharp focus, soft lighting, vibrant colors",
"8k portrait of beautiful cyborg with brown hair, intricate, elegant, highly detailed, majestic, digital photography, art by artgerm and ruan jia and greg rutkowski surreal painting gold butterfly filigree, broken glass, (masterpiece, sidelighting, finely detailed beautiful eyes: 1.2), hdr, (detailed background window to a new dimension, plants and flowers:0.7)",
"black humanoid made of rock, upper body, barechested, male, ((masterpiece, best quality)), cracked skin, white electricity coming through cracks, muscular male, (dragonborn:0.6), white hair, outdoors, detailed background, depth of field",
"(masterpiece), (extremely intricate:1.3), (realistic photo:1.2), portrait of a girl, the most beautiful in the world, (medieval armor), (metal reflections:1.1), upper body, outdoors, intense sunlight, far away castle, professional photograph of a stunning woman detailed, sharp focus, dramatic, award winning, cinematic lighting, volumetrics dtx, (film grain, blurry background, blurry foreground, bokeh, depth of field, sunset, motion blur:1.3), chainmail",
"(8k, best quality, masterpiece:1.2),(best quality:1.0), (ultra highres:1.0), (watercolor:1.3), traditional media, a beautiful woman, shoulder, hair ribbons, by agnes cecile, half body portrait, extremely luminous bright design, pastel colors, (ink:1.3), autumn lights","cgmech, (realistic), solo, white mecha robot, cape, science fiction, torn clothes, glowing, standing, robot joints, mecha, armor, cowboy shot, (floating cape), intense sunlight, silver dragonborn, outdoors, landscape, nature, ((masterpiece, best quality)), dtx, (film grain, blurry background, blurry foreground, bokeh, depth of field, motion blur:1.3)",
"fashion photography portrait of indian girl with blue hair, in lush jungle with flowers, 3d render, cgi, symetrical, octane render, 35mm, bokeh, 9:16, (intricate details:1.12), hdr, (intricate details, hyperdetailed:1.15), (natural skin texture, hyperrealism, soft light, sharp:1.2), detailed, sunlight passing through foliage, india",
"(realistic, photorealistic), dark skinned woman, (Zoe Saldana:0.6), landscape, movie screenshot, sharp details, the expanse scifi spacescape ceres colony, intricate, highly detailed, rich color, smooth, sharp focus, Unreal Engine 5, 8K, (blurry background, film grain, cinema shot, depht blur, volumetric dtx)",
"landscape, oil on matte canvas, sharp details, the expanse scifi spacescape ceres colony, intricate, highly detailed, digital painting, rich color, smooth, sharp focus, illustration, spaceship landed, Unreal Engine 5, 8K, art by artgerm and greg rutkowski and alphonse mucha",
"Vampire Queen, backlit, intricate details, highly detailed, slate atmosphere, cinematic, dimmed colors, dark shot, muted colors, film grain, lut, spooky, depth blur, blurry background dof, bokeh, realistic, realistic skin, Eva Green",
"Fashion magazine cover photo of a young asian female model with jet black hair, bold red lipstick, detailed skin, leather jacket, posing confidently with hand on hip, upper body shot, studio backdrop, (bright fill lighting:1.4) from the front balancing out shadows, straight on angle, very shallow DOF, in an edgy style, (film grain)",
"photo of a supercar, 8k uhd, high quality, road, sunset, motion blur, depth blur, cinematic, filmic image 4k, 8k with [George Miller's Mad Max style]. The image should be [ultra-realistic], with [high-resolution] captured in [natural light]. The lighting should create [soft shadows] and showcase the [raw] and [vibrant colors], volumetric dtx, depth blur, blurry background, bokeh, (motion blur:1.001)",
"In Casey Baugh's evocative style, art of a beautiful young girl cyborg with long brown hair, futuristic, scifi, intricate, elegant, highly detailed, majestic, Baugh's brushwork infuses the painting with a unique combination of realism and abstraction, greg rutkowski, surreal gold filigree, broken glass, (masterpiece, sidelighting, finely detailed beautiful eyes: 1.2), hdr, realistic painting, natural skin, textured skin, closed mouth, crystal eyes, butterfly filigree, chest armor, eye makeup, robot joints, long hair moved by the wind, window facing to another world, Baugh's distinctive style captures the essence of the girl's enigmatic nature, inviting viewers to explore the depths of her soul, award winning art",
"biopunk female, bioluminescence, detailed, anatomical face, (white_background:1.3)"
)
$outputPath = ".\calibration_data"
$iMatrixPath = ".\calibration_data\imatrixv2.dat"
$batchSize = 8
for ($i = 0; $i -lt $prompts.Length; $i++) {
$prompt = $prompts[$i]
$height = 512
$width = 512
$outputFile = "$outputPath/batch$($i)_$($width)x$($height)_img.png"
& .\build\bin\Release\sd.exe --model $modelPath -p "$prompt" --cfg-scale 1 --sampling-method lcm --steps 8 -t 24 --vae-tiling -W $width -H $height --seed 0 --color -b $batchSize -o $outputFile --imat-out $iMatrixPath --imat-in $iMatrixPath
}
for ($i = 0; $i -lt $prompts.Length; $i++) {
$prompt = $prompts[$i]
$height = 768
$width = 512
$outputFile = "$outputPath/batch$($i)_$($width)x$($height)_img.png"
& .\build\bin\Release\sd.exe --model $modelPath -p "$prompt" --cfg-scale 1 --sampling-method lcm --steps 8 -t 24 --vae-tiling -W $width -H $height --seed 0 --color -b $batchSize -o $outputFile --imat-out $iMatrixPath --imat-in $iMatrixPath
}
for ($i = 0; $i -lt $prompts.Length; $i++) {
$prompt = $prompts[$i]
$height = 512
$width = 768
$outputFile = "$outputPath/batch$($i)_$($width)x$($height)_img.png"
& .\build\bin\Release\sd.exe --model $modelPath -p "$prompt" --cfg-scale 1 --sampling-method lcm --steps 8 -t 24 --vae-tiling -W $width -H $height --seed 0 --color -b $batchSize -o $outputFile --imat-out $iMatrixPath --imat-in $iMatrixPath
}