-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathqr-code.json
More file actions
78 lines (78 loc) · 3.01 KB
/
Copy pathqr-code.json
File metadata and controls
78 lines (78 loc) · 3.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"variables": {
"qr_code_contents": "txch1jdsqdz4069k00t5vlk9l8mnr5ycljz640g36ymnygslgkra675ssg2y4ng",
"init_image_location": "https://th.bing.com/th/id/OIP.Lsm7UOwPR37OPvDy3HUUTQHaE7?rs=1&pid=ImgDetMain"
},
"id": "qr_code",
"description": "Generates a scannable artistic QR code with an SD 2.1 ControlNet.",
"steps": [
{
"name": "qr_code",
"task": {
"command": "qr_code",
"arguments": {
"qr_code_contents": "variable:qr_code_contents"
}
},
"result": {
"content_type": "image/jpeg",
"embed_metadata": true,
"subfolder": "intermediate"
}
},
{
"name": "init_image",
"task": {
"command": "resize_resample",
"arguments": {
"image": {
"location": "variable:init_image_location"
}
}
},
"result": {
"content_type": "image/jpeg",
"embed_metadata": true,
"subfolder": "intermediate"
}
},
{
"name": "main",
"pipeline": {
"configuration": {
"component_type": "StableDiffusionControlNetImg2ImgPipeline"
},
"controlnet": {
"configuration": {
"component_type": "ControlNetModel"
},
"from_pretrained_arguments": {
"model_name": "DionTimmer/controlnet_qrcode-control_v11p_sd21",
"torch_dtype": "torch.float16"
}
},
"from_pretrained_arguments": {
"model_name": "stabilityai/stable-diffusion-2-1",
"torch_dtype": "torch.float16"
},
"arguments": {
"prompt": "green vines",
"negative_prompt": "ugly, disfigured, low quality, blurry, nsfw",
"image": "previous_result:init_image",
"control_image": "previous_result:qr_code",
"width": 768,
"height": 768,
"guidance_scale": 20,
"controlnet_conditioning_scale": 1.75,
"strength": 0.9,
"num_inference_steps": 150
}
},
"result": {
"content_type": "image/jpeg",
"embed_metadata": true,
"subfolder": "final"
}
}
]
}