diff --git a/BaiHu/Image/28/1.jpg b/BaiHu/Image/28/1.jpg deleted file mode 100644 index 8735f6b5..00000000 Binary files a/BaiHu/Image/28/1.jpg and /dev/null differ diff --git a/BaiHu/Image/28/1.png b/BaiHu/Image/28/1.png new file mode 100644 index 00000000..4288f4d7 Binary files /dev/null and b/BaiHu/Image/28/1.png differ diff --git a/BaiHu/Image/28/2.png b/BaiHu/Image/28/2.png new file mode 100644 index 00000000..b4d97a12 Binary files /dev/null and b/BaiHu/Image/28/2.png differ diff --git a/BaiHu/Image/28/3.png b/BaiHu/Image/28/3.png new file mode 100644 index 00000000..2253100b Binary files /dev/null and b/BaiHu/Image/28/3.png differ diff --git a/BaiHu/Image/28/4.png b/BaiHu/Image/28/4.png new file mode 100644 index 00000000..262cfbf8 Binary files /dev/null and b/BaiHu/Image/28/4.png differ diff --git a/BaiHu/Image/28/5.png b/BaiHu/Image/28/5.png new file mode 100644 index 00000000..2657cefe Binary files /dev/null and b/BaiHu/Image/28/5.png differ diff --git a/BaiHu/JSON/28_1.json b/BaiHu/JSON/28_1.json index bbebadf5..53e76ada 100644 --- a/BaiHu/JSON/28_1.json +++ b/BaiHu/JSON/28_1.json @@ -1,14 +1,14 @@ { "override_settings": { - "sd_model_checkpoint": "绪儿-一青十色XL_V2 VAE.safetensors [9f9290ac66]", + "sd_model_checkpoint": "majicMIX realistic 麦橘写实_v7.safetensors [7c819b6d13]", "sd_vae": "Automatic" }, - "prompt": "(8k, RAW photo, highest quality),hyperrealistic abstract style portrait of an otherworldly being with metallic skin,glowing orbs for eyes,and intricate fractal patterns emanating from their face,non-representational,colors and shapes,expression of feelings,imaginative,highly detailed,(pink Fluorescent eyeshadow:1.2),eyeliner,makeup,lipstick,watery eyes,(Mole under eye:1.2),(seductive_smile:1.2),XURE Dunhuang Flying XL,1girl,,", + "prompt": "(masterpiece, top quality, best quality, official art, beautiful and aesthetic:1.2)huoniao,1girl,baby face,super cute,wear colorful dress,sit on,huge flamingo,close up,teeth,solo,smile,ultra details,,,", "negative_prompt": "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,cross-eyed,text,cleavage,", - "steps": 20, + "steps": 40, "sampler_name": "DPM++ 2M Karras", "width": 1024, - "height": 1472, + "height": 1024, "batch_size": 1, "n_iter": 1, "seed": 1, diff --git a/BaiHu/JSON/28_2.json b/BaiHu/JSON/28_2.json index bbebadf5..9ca649c4 100644 --- a/BaiHu/JSON/28_2.json +++ b/BaiHu/JSON/28_2.json @@ -1,14 +1,14 @@ { "override_settings": { - "sd_model_checkpoint": "绪儿-一青十色XL_V2 VAE.safetensors [9f9290ac66]", + "sd_model_checkpoint": "majicMIX realistic 麦橘写实_v7.safetensors [7c819b6d13]", "sd_vae": "Automatic" }, - "prompt": "(8k, RAW photo, highest quality),hyperrealistic abstract style portrait of an otherworldly being with metallic skin,glowing orbs for eyes,and intricate fractal patterns emanating from their face,non-representational,colors and shapes,expression of feelings,imaginative,highly detailed,(pink Fluorescent eyeshadow:1.2),eyeliner,makeup,lipstick,watery eyes,(Mole under eye:1.2),(seductive_smile:1.2),XURE Dunhuang Flying XL,1girl,,", + "prompt": "(masterpiece, top quality, best quality, official art, beautiful and aesthetic:1.2),huoniao,1girl,wear colorful dress,sit on,close up,teeth,solo,smile,ultra details,,,", "negative_prompt": "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,cross-eyed,text,cleavage,", - "steps": 20, + "steps": 40, "sampler_name": "DPM++ 2M Karras", "width": 1024, - "height": 1472, + "height": 1024, "batch_size": 1, "n_iter": 1, "seed": 1, diff --git a/BaiHu/JSON/28_3.json b/BaiHu/JSON/28_3.json new file mode 100644 index 00000000..478476b8 --- /dev/null +++ b/BaiHu/JSON/28_3.json @@ -0,0 +1,57 @@ +{ + "override_settings": { + "sd_model_checkpoint": "majicMIX realistic 麦橘写实_v7.safetensors [7c819b6d13]", + "sd_vae": "Automatic" + }, + "prompt": "(masterpiece, top quality, best quality, official art, beautiful and aesthetic:1.2),huoniao,1girl,baby face,super cute,wear colorful dress,sit on,close up,teeth,solo,smile,ultra details,,,", + "negative_prompt": "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,cross-eyed,text,cleavage,", + "steps": 40, + "sampler_name": "DPM++ 2M Karras", + "width": 1024, + "height": 1024, + "batch_size": 1, + "n_iter": 1, + "seed": 1, + "cfg_scale": 3, + "CLIP_stop_at_last_layers": 2, + "init_images": [ + "string" + ], + "restore_faces": false, + "enable_hr": true, + "denoising_strength": 0.5, + "alwayson_scripts": { + "ControlNet": { + "args": [ + { + "enabled": true, + "model": "ip-adapter_instant_id_sdxl [eb2d3ec0]", + "module": "instant_id_face_embedding", + "weight": 1, + "resize_mode": "Crop and Resize", + "guidance_start": 0, + "guidance_end": 1, + "pixel_perfect": true, + "processor_res": 512, + "save_detected_map": true, + "input_image": "string", + "control_mode": "My prompt is more important" + }, + { + "enabled": true, + "model": "control_instant_id_sdxl [c5c25a50]", + "module": "instant_id_face_keypoints", + "weight": 1, + "resize_mode": "Crop and Resize", + "guidance_start": 0, + "guidance_end": 1, + "pixel_perfect": true, + "processor_res": 512, + "save_detected_map": true, + "input_image": "string", + "control_mode": "ControlNet is more important" + } + ] + } + } +} \ No newline at end of file diff --git a/BaiHu/JSON/28_4.json b/BaiHu/JSON/28_4.json new file mode 100644 index 00000000..c6083e0e --- /dev/null +++ b/BaiHu/JSON/28_4.json @@ -0,0 +1,57 @@ +{ + "override_settings": { + "sd_model_checkpoint": "majicMIX realistic 麦橘写实_v7.safetensors [7c819b6d13]", + "sd_vae": "Automatic" + }, + "prompt": "(masterpiece, top quality, best quality, official art, beautiful and aesthetic:1.2),huoniao,1girl,huge flamingo,city building background,very happy,smile,flowers,ultra details,,,", + "negative_prompt": "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,cross-eyed,text,cleavage,", + "steps": 40, + "sampler_name": "DPM++ 2M Karras", + "width": 1024, + "height": 1024, + "batch_size": 1, + "n_iter": 1, + "seed": 1, + "cfg_scale": 3, + "CLIP_stop_at_last_layers": 2, + "init_images": [ + "string" + ], + "restore_faces": false, + "enable_hr": true, + "denoising_strength": 0.5, + "alwayson_scripts": { + "ControlNet": { + "args": [ + { + "enabled": true, + "model": "ip-adapter_instant_id_sdxl [eb2d3ec0]", + "module": "instant_id_face_embedding", + "weight": 1, + "resize_mode": "Crop and Resize", + "guidance_start": 0, + "guidance_end": 1, + "pixel_perfect": true, + "processor_res": 512, + "save_detected_map": true, + "input_image": "string", + "control_mode": "My prompt is more important" + }, + { + "enabled": true, + "model": "control_instant_id_sdxl [c5c25a50]", + "module": "instant_id_face_keypoints", + "weight": 1, + "resize_mode": "Crop and Resize", + "guidance_start": 0, + "guidance_end": 1, + "pixel_perfect": true, + "processor_res": 512, + "save_detected_map": true, + "input_image": "string", + "control_mode": "ControlNet is more important" + } + ] + } + } +} \ No newline at end of file diff --git a/BaiHu/JSON/28_5.json b/BaiHu/JSON/28_5.json new file mode 100644 index 00000000..557bcd6e --- /dev/null +++ b/BaiHu/JSON/28_5.json @@ -0,0 +1,57 @@ +{ + "override_settings": { + "sd_model_checkpoint": "majicMIX realistic 麦橘写实_v7.safetensors [7c819b6d13]", + "sd_vae": "Automatic" + }, + "prompt": "(masterpiece, top quality, best quality, official art, beautiful and aesthetic:1.2),1girl,baby face,smile,super cute,with a huge Flamingo after the girl,flamingo as background,ultra details,,,", + "negative_prompt": "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,cross-eyed,text,cleavage,", + "steps": 40, + "sampler_name": "DPM++ 2M Karras", + "width": 1024, + "height": 1024, + "batch_size": 1, + "n_iter": 1, + "seed": 1, + "cfg_scale": 3, + "CLIP_stop_at_last_layers": 2, + "init_images": [ + "string" + ], + "restore_faces": false, + "enable_hr": true, + "denoising_strength": 0.5, + "alwayson_scripts": { + "ControlNet": { + "args": [ + { + "enabled": true, + "model": "ip-adapter_instant_id_sdxl [eb2d3ec0]", + "module": "instant_id_face_embedding", + "weight": 1, + "resize_mode": "Crop and Resize", + "guidance_start": 0, + "guidance_end": 1, + "pixel_perfect": true, + "processor_res": 512, + "save_detected_map": true, + "input_image": "string", + "control_mode": "My prompt is more important" + }, + { + "enabled": true, + "model": "control_instant_id_sdxl [c5c25a50]", + "module": "instant_id_face_keypoints", + "weight": 1, + "resize_mode": "Crop and Resize", + "guidance_start": 0, + "guidance_end": 1, + "pixel_perfect": true, + "processor_res": 512, + "save_detected_map": true, + "input_image": "string", + "control_mode": "ControlNet is more important" + } + ] + } + } +} \ No newline at end of file diff --git a/BaiHu/Tools/TestComfyUIApi.py b/BaiHu/Tools/TestComfyUIApi.py index a5453949..b46cb75d 100644 --- a/BaiHu/Tools/TestComfyUIApi.py +++ b/BaiHu/Tools/TestComfyUIApi.py @@ -6,4 +6,6 @@ config = ConfigUtil.getConfig() server_address = config.get('comfyui', 'server_address') # 清理GPU缓存 -clear_cache(server_address) +info = getUse(server_address) +print(info) +# clear_cache(server_address) diff --git a/BaiHu/Tools/addModel.py b/BaiHu/Tools/addModel.py index a42b5882..d28ccf95 100644 --- a/BaiHu/Tools/addModel.py +++ b/BaiHu/Tools/addModel.py @@ -6,9 +6,9 @@ from Util.PgUtil import * sql = "INSERT INTO t_hy_model(model_id,model_name,memo,star,update_time,img_count,b_use,sort_id,model_type_id) VALUES (%s,%s, %s,%s,now(),%s,1,1,%s);" # 模型编号 -model_id = 31 +model_id = 28 # 模型名称 -model_name = '图片皮克斯风格化' +model_name = '火烈鸟' # 提示信息 memo = '1、请上传正面半身照。; 2、确保脸部无遮挡;3、图片要求不小于1.5MB(正常手机拍照即可)' # 星级 @@ -16,23 +16,9 @@ star = 5 # 上传照片数量 img_count = 1 # 模板类型 -# 1:WEBUI 2:COMFY_UI -model_type_id = 1 +# 1:SD TXT2IMG 2:SD IMG2IMG 3:COMFY_UI +model_type_id = 2 params = (model_id, model_name, memo, star, img_count, model_type_id) execute_modify(sql, params) -# 模板的提示词初始化 -prompts = [{"prompt_id": 1, "prompt": "1111", "img_url": "https://oss上的根据模型和指定提示词生成的样张.jpg"}, - {"prompt_id": 2, "prompt": "2222", "img_url": "2222.jpg"}, - {"prompt_id": 3, "prompt": "3333", "img_url": "3333.jpg"}, - {"prompt_id": 4, "prompt": "4444", "img_url": "4444.jpg"}, - {"prompt_id": 5, "prompt": "5555", "img_url": "5555.jpg"}, ] - -sql = "insert into t_hy_model_prompt(model_id,prompt_id,prompt,img_url) values(%s,%s,%s,%s)" -for x in prompts: - prompt_id = x['prompt_id'] - prompt = x['prompt'] - img_url = x['img_url'] - params = (model_id, prompt_id, prompt, img_url) - execute_modify(sql, params)