diff --git a/BaiHu/Image/14/1.png b/BaiHu/Image/14/1.png new file mode 100644 index 00000000..889fcbf8 Binary files /dev/null and b/BaiHu/Image/14/1.png differ diff --git a/BaiHu/Image/14/2.png b/BaiHu/Image/14/2.png new file mode 100644 index 00000000..ce559dd9 Binary files /dev/null and b/BaiHu/Image/14/2.png differ diff --git a/BaiHu/Image/14/3.png b/BaiHu/Image/14/3.png new file mode 100644 index 00000000..4798b8d7 Binary files /dev/null and b/BaiHu/Image/14/3.png differ diff --git a/BaiHu/Image/14/4.png b/BaiHu/Image/14/4.png new file mode 100644 index 00000000..c069649e Binary files /dev/null and b/BaiHu/Image/14/4.png differ diff --git a/BaiHu/Image/14/5.png b/BaiHu/Image/14/5.png new file mode 100644 index 00000000..98d3426d Binary files /dev/null and b/BaiHu/Image/14/5.png differ diff --git a/BaiHu/JSON/14_1.json b/BaiHu/JSON/14_1.json new file mode 100644 index 00000000..d1ca3592 --- /dev/null +++ b/BaiHu/JSON/14_1.json @@ -0,0 +1,43 @@ +{ + "override_settings": { + "sd_model_checkpoint": "v1-5-pruned_v1-5-pruned.safetensors [1a189f0be6]", + "sd_vae": "Automatic" + }, + "prompt": "masterpiece,best quality,huge filesize,masterpiece,best quality,(((masterpiece))),(((best quality))),1girl,solo,braid,skirt,black hair,looking at viewer,child,twin braids,female child,outdoors,long hair,photo background,full body,blush,standing,long sleeves,brown eyes,closed mouth,,,", + "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": 38, + "sampler_name": "Restart", + "width": 816, + "height": 1224, + "batch_size": 1, + "n_iter": 1, + "seed": 1, + "cfg_scale": 5.5, + "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-faceid-plusv2_sd15 [6e14fc1a]", + "module": "ip-adapter_face_id_plus", + "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" + } + ] + } + } +} \ No newline at end of file diff --git a/BaiHu/JSON/14_2.json b/BaiHu/JSON/14_2.json new file mode 100644 index 00000000..56ba9bee --- /dev/null +++ b/BaiHu/JSON/14_2.json @@ -0,0 +1,43 @@ +{ + "override_settings": { + "sd_model_checkpoint": "v1-5-pruned_v1-5-pruned.safetensors [1a189f0be6]", + "sd_vae": "Automatic" + }, + "prompt": "masterpiece,best quality,huge filesize,masterpiece,best quality,(((masterpiece))),(((best quality))),solo,male focus,black hair,1boy,winter clothes,coat,hat,scarf,black eyes,jacket,blurry,full body,looking at viewer,curly hair,male child,smile,standing,child,,,", + "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": 38, + "sampler_name": "Restart", + "width": 816, + "height": 1224, + "batch_size": 1, + "n_iter": 1, + "seed": 1, + "cfg_scale": 5.5, + "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-faceid-plusv2_sd15 [6e14fc1a]", + "module": "ip-adapter_face_id_plus", + "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" + } + ] + } + } +} \ No newline at end of file diff --git a/BaiHu/JSON/14_3.json b/BaiHu/JSON/14_3.json new file mode 100644 index 00000000..fed608d8 --- /dev/null +++ b/BaiHu/JSON/14_3.json @@ -0,0 +1,43 @@ +{ + "override_settings": { + "sd_model_checkpoint": "v1-5-pruned_v1-5-pruned.safetensors [1a189f0be6]", + "sd_vae": "Automatic" + }, + "prompt": "masterpiece,best quality,huge filesize,masterpiece,best quality,(((masterpiece))),(((best quality))),1girl,solo,brown hair,yellow headwear,shorts,hat,long sleeves,earrings,smile,jewelry,full body,shoes,standing,socks,own hands together,black footwear,blush,sweater,bird,shoulder bag,puffy long sleeves,purple eyes,hair ornament,shirt,puffy sleeves,plant,flower,outdoors,forest,jungle background,,,", + "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": 38, + "sampler_name": "Restart", + "width": 816, + "height": 1224, + "batch_size": 1, + "n_iter": 1, + "seed": 1, + "cfg_scale": 5.5, + "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-faceid-plusv2_sd15 [6e14fc1a]", + "module": "ip-adapter_face_id_plus", + "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" + } + ] + } + } +} \ No newline at end of file diff --git a/BaiHu/JSON/14_4.json b/BaiHu/JSON/14_4.json new file mode 100644 index 00000000..56ba9bee --- /dev/null +++ b/BaiHu/JSON/14_4.json @@ -0,0 +1,43 @@ +{ + "override_settings": { + "sd_model_checkpoint": "v1-5-pruned_v1-5-pruned.safetensors [1a189f0be6]", + "sd_vae": "Automatic" + }, + "prompt": "masterpiece,best quality,huge filesize,masterpiece,best quality,(((masterpiece))),(((best quality))),solo,male focus,black hair,1boy,winter clothes,coat,hat,scarf,black eyes,jacket,blurry,full body,looking at viewer,curly hair,male child,smile,standing,child,,,", + "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": 38, + "sampler_name": "Restart", + "width": 816, + "height": 1224, + "batch_size": 1, + "n_iter": 1, + "seed": 1, + "cfg_scale": 5.5, + "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-faceid-plusv2_sd15 [6e14fc1a]", + "module": "ip-adapter_face_id_plus", + "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" + } + ] + } + } +} \ No newline at end of file diff --git a/BaiHu/JSON/14_5.json b/BaiHu/JSON/14_5.json new file mode 100644 index 00000000..67e8c34f --- /dev/null +++ b/BaiHu/JSON/14_5.json @@ -0,0 +1,43 @@ +{ + "override_settings": { + "sd_model_checkpoint": "v1-5-pruned_v1-5-pruned.safetensors [1a189f0be6]", + "sd_vae": "Automatic" + }, + "prompt": "masterpiece,best quality,huge filesize,masterpiece,best quality,(((masterpiece))),(((best quality))),A girl,smiling,wearing a yellow dress,facing forward,standing,,,", + "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": 38, + "sampler_name": "Restart", + "width": 816, + "height": 1224, + "batch_size": 1, + "n_iter": 1, + "seed": 1, + "cfg_scale": 5.5, + "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-faceid-plusv2_sd15 [6e14fc1a]", + "module": "ip-adapter_face_id_plus", + "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" + } + ] + } + } +} \ No newline at end of file diff --git a/BaiHu/Test/RemoveExtInfo.py b/BaiHu/Test/RemoveExtInfo.py index e5ab9f50..26a3cc35 100644 --- a/BaiHu/Test/RemoveExtInfo.py +++ b/BaiHu/Test/RemoveExtInfo.py @@ -1,10 +1,11 @@ from Util.PngUtil import * # 获取原始图片的exif信息 -print("原始图片的exif信息:") -getExif('../Image/error.png') -# 清除图片的exif信息 -# clearExif('../Image/SdImg.png', './my_image.png') -# 获取生成图片的exif信息 -print("生成图片的exif信息:") -getExif('./my_image.png') +# print("原始图片的exif信息:") +# getExif('../Image/Backup/error.png') +# # 清除图片的exif信息 +# # clearExif('../Image/SdImg.png', './my_image.png') +# # 获取生成图片的exif信息 +# print("生成图片的exif信息:") +# getExif('./my_image.png') + diff --git a/BaiHu/Tools/addModel.py b/BaiHu/Tools/addModel.py index 526a63c8..98abb573 100644 --- a/BaiHu/Tools/addModel.py +++ b/BaiHu/Tools/addModel.py @@ -6,10 +6,10 @@ 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,style_id,is_cover) VALUES (%s,%s, %s,%s,now(),%s,1,1,%s,%s,%s);" # 模型编号 -model_id = 7 +model_id = 14 # 模型名称 -model_name = '包菜娃' +model_name = '毛线娃' # 提示信息 memo = '1、请上传正面半身照。; 2、确保脸部无遮挡;3、图片要求不小于1.5MB(正常手机拍照即可)' diff --git a/BaiHu/Util/PngUtil.py b/BaiHu/Util/PngUtil.py index 3ad0e529..0dcc9c88 100644 --- a/BaiHu/Util/PngUtil.py +++ b/BaiHu/Util/PngUtil.py @@ -22,3 +22,4 @@ def clearExif(source, target): if k not in fields_to_keep: del im.info[k] im.save(target, format='PNG') +# pip install piexif \ No newline at end of file diff --git a/BaiHu/Util/__pycache__/PngUtil.cpython-310.pyc b/BaiHu/Util/__pycache__/PngUtil.cpython-310.pyc index e80e5258..3ef874c9 100644 Binary files a/BaiHu/Util/__pycache__/PngUtil.cpython-310.pyc and b/BaiHu/Util/__pycache__/PngUtil.cpython-310.pyc differ