diff --git a/.DS_Store b/.DS_Store index c62210b..2162efd 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/README.md b/README.md index 845efef..21fcf28 100644 --- a/README.md +++ b/README.md @@ -119,4 +119,31 @@ image.save("sample_icecream_4K.png") result: +Also try with "DSLR shot of" or "Photorealistic picture of" -based prompts for photorealistic samples! +```Python +from pipeline_diffusehigh_sdxl import DiffuseHighSDXLPipeline +pipeline = DiffuseHighSDXLPipeline.from_pretrained( + "stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, +).to("cuda") + +negative_prompt = "blurry, ugly, duplicate, poorly drawn, deformed, mosaic" +prompt = "A DSLR shot of fresh strawberries in a ceramic bowl, with tiny water droplets on the fruit, highly detailed, sharp focus, photo-realistic, 8K." + +image = pipeline( + prompt, + negative_prompt=negative_prompt, + target_height=[2048, 3072, 4096], + target_width=[2048, 3072, 4096], + enable_dwt=True, + dwt_steps=5, + enable_sharpening=True, + sharpness_factor=1.0, + ).images[0] + +image.save("sample_DSLR_strawberry_4K.png") +``` + +result: + + If the result image has undesirable structural properties, you can adjust `dwt_steps` argument to little more higher value, e.g., `dwt_steps=7`. If the result image still seems blurry, try higher `sharpness_factor` argument value, e.g., `sharpness_factor=2.0`. \ No newline at end of file diff --git a/figures/sample_DSLR_strawberry_4K.png b/figures/sample_DSLR_strawberry_4K.png new file mode 100644 index 0000000..ade97e1 Binary files /dev/null and b/figures/sample_DSLR_strawberry_4K.png differ