Views
No views yet
1from diffusers import StableDiffusionPipeline
2import torch
3
4# Load the model
5pipe = StableDiffusionPipeline.from_pretrained(
6 "madmasyhur/sd-batik-dreambooth",
7 torch_dtype=torch.float16,
8 safety_checker=None,
9 requires_safety_checker=False
10)
11pipe = pipe.to("cuda")
12
13# Generate batik patterns
14# use both unique token and motif name for better result
15prompt = "a photo of balibtk batik bali pattern, traditional indonesian textile, high quality, detailed"
16negative_prompt = "blurry, low quality, distorted, text, watermark"
17
18image = pipe(
19 prompt,
20 negative_prompt=negative_prompt,
21 num_inference_steps=50,
22 guidance_scale=7.5,
23 height=512,
24 width=512
25).images[0]
26
27image.save("batik_pattern.png")| Motif | Token | Region/Style | Description |
|---|---|---|---|
| Bali | balibtk | Balinese traditional | Traditional Balinese ornamental patterns |
| Betawi | betbtk | Jakarta traditional | Jakarta's indigenous cultural motifs |
| Cendrawasih | cenbtk | Papua bird motif | Bird of paradise inspired patterns |
| Ceplok | cepbtk | Central Java geometric | Geometric circular and floral motifs |
| Dayak | daybtk | Kalimantan traditional | Borneo indigenous tribal patterns |
| Garutan | garbtk | Garut regional style | West Java regional motifs |
| Gentongan | genbtk | Traditional dyeing technique | Classic dyeing method patterns |
| Jumputan | jumbtk | Tie-dye technique | Traditional tie-dye resist patterns |
| Kawung | kawbtk | Yogyakarta classic | Four-circle geometric royal pattern |
| Keraton | kerbtk | Royal court style | Noble palace traditional designs |
| Lasem | lasbtk | Chinese-Javanese fusion | Chinese-influenced coastal patterns |
| Megamendung | mgmdbtk | Cirebon cloud pattern | Stylized cloud and sky motifs |
| Nitik | nitbtk | Fine dot pattern | Delicate small dot decorations |
| Parang | parbtk | Diagonal knife pattern | Diagonal sword/blade motifs |
| Sasirangan | sasbtk | Banjarmasin traditional | South Kalimantan traditional patterns |
| Sekar | sekbtk | Floral pattern | Various flower and plant motifs |
| Sidoluhur | sidlbtk | Javanese noble pattern | High-status traditional design |
| Sidomukti | sidmbtk | Javanese prosperity pattern | Prosperity and fortune symbols |
| Sogan | sogbtk | Brown natural dye | Natural brown-colored traditional dye |
| Tambal | tambtk | Patchwork pattern | Mixed patchwork design motifs |
"a photo of kawbtk batik kawung pattern, traditional indonesian textile, geometric design, high quality"
"a photo of parbtk batik parang pattern, diagonal lines, traditional javanese, detailed, masterpiece"
"a photo of kerbtk batik keraton pattern, royal court style, intricate details, traditional""a photo of mgmdbtk batik megamendung pattern, cloud motif, cirebon style, intricate details"
"a photo of cenbtk batik cendrawasih pattern, bird of paradise, papua traditional, vibrant colors"
"a photo of daybtk batik dayak pattern, tribal design, kalimantan traditional, authentic""a photo of sekbtk batik sekar pattern, floral design, traditional indonesian, beautiful flowers"
"a photo of sogbtk batik sogan pattern, natural brown dye, traditional coloring, organic texture"
"a photo of lasbtk batik lasem pattern, coastal design, chinese javanese fusion, elegant""a photo of jumbtk batik jumputan pattern, tie dye technique, traditional resist dyeing, colorful"
"a photo of genbtk batik gentongan pattern, traditional dyeing method, authentic technique, detailed"
"a photo of nitbtk batik nitik pattern, fine dots, delicate pattern, traditional craftsmanship"1@misc{sd-batik-dreambooth,
2 title={SD Batik DreamBooth - Indonesian Traditional Patterns},
3 author={madmasyhur},
4 year={2025},
5 url={https://huggingface.co/madmasyhur/sd-batik-dreambooth}
6}