main
黄海 1 year ago
parent d16e2393f6
commit 080621fe0c

@ -167,6 +167,16 @@ def C26_get_sdxl_styles():
return SDXL_STYLES
"source_images": [
"13,inputs,image"
],
"style_pose_images": [
{
"key": "79,inputs,image",
"value": "./Image/C22/style_1.png"
}
],
def C26(prompt_data, img):
# 原图
prompt_data["13"]["inputs"]["image"] = img[0]

@ -0,0 +1,235 @@
{
"3": {
"inputs": {
"seed": 482247174180170,
"steps": 30,
"cfg": 2,
"sampler_name": "dpmpp_2m",
"scheduler": "karras",
"denoise": 1,
"model": [
"60",
0
],
"positive": [
"60",
1
],
"negative": [
"60",
2
],
"latent_image": [
"5",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "K采样器"
}
},
"4": {
"inputs": {
"ckpt_name": "turbovisionxlSuperFastXLBasedOnNew_tvxlV431Bakedvae.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Checkpoint加载器(简易)"
}
},
"5": {
"inputs": {
"width": 1024,
"height": 1368,
"batch_size": 1
},
"class_type": "EmptyLatentImage",
"_meta": {
"title": "空Latent"
}
},
"8": {
"inputs": {
"samples": [
"3",
0
],
"vae": [
"4",
2
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE解码"
}
},
"11": {
"inputs": {
"instantid_file": "ip-adapter.bin"
},
"class_type": "InstantIDModelLoader",
"_meta": {
"title": "InstnatID模型加载器"
}
},
"13": {
"inputs": {
"image": "1 (3).png",
"upload": "image"
},
"class_type": "LoadImage",
"_meta": {
"title": "加载图像"
}
},
"16": {
"inputs": {
"control_net_name": "control_instant_id_sdxl.safetensors"
},
"class_type": "ControlNetLoader",
"_meta": {
"title": "ControlNet加载器"
}
},
"38": {
"inputs": {
"provider": "CUDA"
},
"class_type": "InstantIDFaceAnalysis",
"_meta": {
"title": "InstantID面部分析"
}
},
"39": {
"inputs": {
"text": [
"79",
0
],
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"40": {
"inputs": {
"text": [
"79",
1
],
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"60": {
"inputs": {
"weight": 0.85,
"start_at": 0,
"end_at": 1,
"instantid": [
"11",
0
],
"insightface": [
"38",
0
],
"control_net": [
"16",
0
],
"image": [
"13",
0
],
"model": [
"4",
0
],
"positive": [
"39",
0
],
"negative": [
"40",
0
],
"image_kps": [
"76",
0
]
},
"class_type": "ApplyInstantID",
"_meta": {
"title": "应用InstantID"
}
},
"76": {
"inputs": {
"faceanalysis": [
"38",
0
],
"image": [
"13",
0
]
},
"class_type": "FaceKeypointsPreprocessor",
"_meta": {
"title": "面部关键点预处理器"
}
},
"77": {
"inputs": {
"images": [
"76",
0
]
},
"class_type": "PreviewImage",
"_meta": {
"title": "预览图像"
}
},
"79": {
"inputs": {
"text_positive": "1girl,looking_at_viewer,best quality,masterpiece,8k,",
"text_negative": "NSFW,blurry,low quality,watermark,monochrome,badhandv4,easynegative,ng_deepnegative_v1_75t,bad proportions,mutated hands and fingers,poorly drawn face,extra limb,missing limb,malformed limbs,disconnected limbs,ugly,floating limbs,extra legs,mutation,bad body,(long neck:2),cross-eyed,text,cleavage",
"style": "futuristic-cyberpunk cityscape",
"log_prompt": false,
"style_positive": true,
"style_negative": true
},
"class_type": "SDXLPromptStyler",
"_meta": {
"title": "SDXL风格化提示词"
}
},
"95": {
"inputs": {
"filename_prefix": "ComfyUI",
"images": [
"8",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "保存图像"
}
}
}

@ -84,8 +84,8 @@ if __name__ == '__main__':
# 半身
# https://www.esheep.com/app/1890?utm_source=app_tab
# input_images = [['../Image/wife.jpg'], ['../Image/xiao2.jpg'], ['../Image/xiaoqiao.jpg']]
input_images = [['../Image/xiao2.png']]
# input_images = [['../Image/wife.jpg']]
# input_images = [['../Image/xiao2.png']]
input_images = [['../Image/wife.jpg']]
# input_image = ['../ShlImages/shl_xs_1.jpg']
# input_image = ['../ShlImages/shl_xs_2.jpg']

Loading…
Cancel
Save