diff --git a/BaiHu/Image/29/1.png b/BaiHu/Image/29/1.png new file mode 100644 index 00000000..e3e331cd Binary files /dev/null and b/BaiHu/Image/29/1.png differ diff --git a/BaiHu/Image/29/2.png b/BaiHu/Image/29/2.png new file mode 100644 index 00000000..15f40bc7 Binary files /dev/null and b/BaiHu/Image/29/2.png differ diff --git a/BaiHu/Image/29/3.png b/BaiHu/Image/29/3.png new file mode 100644 index 00000000..78a122ee Binary files /dev/null and b/BaiHu/Image/29/3.png differ diff --git a/BaiHu/Image/29/4.png b/BaiHu/Image/29/4.png new file mode 100644 index 00000000..ad6f84fa Binary files /dev/null and b/BaiHu/Image/29/4.png differ diff --git a/BaiHu/Image/29/5.png b/BaiHu/Image/29/5.png new file mode 100644 index 00000000..70c5d660 Binary files /dev/null and b/BaiHu/Image/29/5.png differ diff --git a/BaiHu/JSON/29_1.json b/BaiHu/JSON/29_1.json new file mode 100644 index 00000000..01b7f21d --- /dev/null +++ b/BaiHu/JSON/29_1.json @@ -0,0 +1,57 @@ +{ + "override_settings": { + "sd_model_checkpoint": "金在在儿童摄影专用V4.safetensors [1bb8f3a74a]", + "sd_vae": "Automatic" + }, + "prompt": "kinghere yuzhouchild,1girl,spacesuit,astronaut,planet,realistic,earth \\(planet\\),twintails,space,brown hair,solo,bangs,short,cinematicstunning contrasts and shadow,introspection,8k,Photography,super detailed,hyper realistic,masterpiece,Depth of field,bright color,Super lightsensation,caustic,,,", + "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": 45, + "sampler_name": "DPM++ 2M Karras", + "width": 1024, + "height": 1536, + "batch_size": 1, + "n_iter": 1, + "seed": 1, + "cfg_scale": 7, + "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/29_2.json b/BaiHu/JSON/29_2.json new file mode 100644 index 00000000..d9c70ed9 --- /dev/null +++ b/BaiHu/JSON/29_2.json @@ -0,0 +1,57 @@ +{ + "override_settings": { + "sd_model_checkpoint": "金在在儿童摄影专用V4.safetensors [1bb8f3a74a]", + "sd_vae": "Automatic" + }, + "prompt": "kinghere yuzhouchild,astronaut,dog,1boy,male focus,spacesuit,planet,space helmet,walking,realistic,space,earth \\(planet\\),cinematicstunning contrasts and shadow,introspection,8k,Photography,super detailed,hyper realistic,masterpiece,Depth of field,bright color,Super lightsensation,caustic,,,", + "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": 45, + "sampler_name": "DPM++ 2M Karras", + "width": 1024, + "height": 1536, + "batch_size": 1, + "n_iter": 1, + "seed": 1, + "cfg_scale": 7, + "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/29_3.json b/BaiHu/JSON/29_3.json new file mode 100644 index 00000000..f61f69c6 --- /dev/null +++ b/BaiHu/JSON/29_3.json @@ -0,0 +1,57 @@ +{ + "override_settings": { + "sd_model_checkpoint": "金在在儿童摄影专用V4.safetensors [1bb8f3a74a]", + "sd_vae": "Automatic" + }, + "prompt": "kinghere yuzhouchild,astronaut,space,realistic,1boy,spacesuit,male focus,planet,earth \\(planet\\),space helmet,star \\(sky\\),american flag,animal,solo,brown hair,child,moon,cinematicstunning contrasts and shadow,introspection,8k,Photography,super detailed,hyper realistic,masterpiece,Depth of field,bright color,Super lightsensation,caustic,,,", + "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": 45, + "sampler_name": "DPM++ 2M Karras", + "width": 1024, + "height": 1536, + "batch_size": 1, + "n_iter": 1, + "seed": 1, + "cfg_scale": 7, + "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/29_4.json b/BaiHu/JSON/29_4.json new file mode 100644 index 00000000..19b0f9d5 --- /dev/null +++ b/BaiHu/JSON/29_4.json @@ -0,0 +1,57 @@ +{ + "override_settings": { + "sd_model_checkpoint": "金在在儿童摄影专用V4.safetensors [1bb8f3a74a]", + "sd_vae": "Automatic" + }, + "prompt": "kinghere yuzhouchild,astronaut,1girl,spacesuit,planet,space helmet,walking,realistic,space,earth \\(planet\\),animal,blurry,running,facial hair,cinematicstunning contrasts and shadow,introspection,8k,Photography,super detailed,hyper realistic,masterpiece,Depth of field,bright color,Super lightsensation,caustic,,,", + "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": 45, + "sampler_name": "DPM++ 2M Karras", + "width": 1024, + "height": 1536, + "batch_size": 1, + "n_iter": 1, + "seed": 1, + "cfg_scale": 7, + "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/29_5.json b/BaiHu/JSON/29_5.json new file mode 100644 index 00000000..4d6ab4f4 --- /dev/null +++ b/BaiHu/JSON/29_5.json @@ -0,0 +1,57 @@ +{ + "override_settings": { + "sd_model_checkpoint": "金在在儿童摄影专用V4.safetensors [1bb8f3a74a]", + "sd_vae": "Automatic" + }, + "prompt": "kinghere yuzhouchild,1girl,dog,spacesuit,astronaut,planet,realistic,earth \\(planet\\),twintails,space,brown hair,solo,bangs,short,cinematicstunning contrasts and shadow,introspection,8k,Photography,super detailed,hyper realistic,masterpiece,Depth of field,bright color,Super lightsensation,caustic,,,", + "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": 45, + "sampler_name": "DPM++ 2M Karras", + "width": 1024, + "height": 1536, + "batch_size": 1, + "n_iter": 1, + "seed": 1, + "cfg_scale": 7, + "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/addModel.py b/BaiHu/Tools/addModel.py index 04f7011f..9c9c8b0c 100644 --- a/BaiHu/Tools/addModel.py +++ b/BaiHu/Tools/addModel.py @@ -3,13 +3,13 @@ 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) VALUES (%s,%s, %s,%s,now(),%s,1,1,%s,%s);" +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,1);" # 模型编号 -model_id = 28 +model_id = 29 # 模型名称 -model_name = '火烈鸟' +model_name = '小小宇航员' # 提示信息 memo = '1、请上传正面半身照。; 2、确保脸部无遮挡;3、图片要求不小于1.5MB(正常手机拍照即可)' diff --git a/QingLong/src/main/resource/Sql/HuiYa.sql b/QingLong/src/main/resource/Sql/HuiYa.sql index 9d273684..8b457eae 100644 --- a/QingLong/src/main/resource/Sql/HuiYa.sql +++ b/QingLong/src/main/resource/Sql/HuiYa.sql @@ -3,12 +3,12 @@ -- 获取模型列表 #sql("wxGetModelList") select t1.* from t_hy_model as t1 where t1.b_use=1 and t1.style_id = #para(style_id) - order by t1.star desc,t1.img_count,t1.model_id desc + order by t1.star desc,t1.sort_id #end -- 获取推荐模型列表 #sql("wxGetTjModelList") select t1.* from t_hy_model as t1 where t1.b_use=1 and t1.is_cover = 1 - order by t1.star desc,t1.img_count,t1.model_id desc + order by t1.star desc,t1.sort_id #end -- 获取指定用户的图片列表 #sql("wxGetTaskImage")