From 08189b831585b2adf7bf87da5eabc02b9a5a2f48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=B5=B7?= <10402852@qq.com> Date: Wed, 3 Jul 2024 15:08:44 +0800 Subject: [PATCH] 'commit' --- BaiHu/JSON/44_1.json | 44 +++++++++++++++++++ BaiHu/JSON/44_2.json | 44 +++++++++++++++++++ BaiHu/JSON/44_3.json | 44 +++++++++++++++++++ BaiHu/JSON/44_4.json | 44 +++++++++++++++++++ BaiHu/JSON/44_5.json | 44 +++++++++++++++++++ BaiHu/Tools/addModel.py | 6 +-- BaiHu/doTask.py | 5 +++ .../QingLong/HuiYa/Model/HuiYaModel.java | 1 - 文档/揽睿星舟购买情况.txt | 11 ++++- 9 files changed, 237 insertions(+), 6 deletions(-) create mode 100644 BaiHu/JSON/44_1.json create mode 100644 BaiHu/JSON/44_2.json create mode 100644 BaiHu/JSON/44_3.json create mode 100644 BaiHu/JSON/44_4.json create mode 100644 BaiHu/JSON/44_5.json diff --git a/BaiHu/JSON/44_1.json b/BaiHu/JSON/44_1.json new file mode 100644 index 00000000..22e414aa --- /dev/null +++ b/BaiHu/JSON/44_1.json @@ -0,0 +1,44 @@ +{ + "model_name": "黏土世界", + "memo": "【半身】", + "pose_image": "", + "prompt": + "Felt world,felt style,Felt-World(style),A little girl from a fairy tale,with yellow hair,a crown,a gorgeous dress,holding a rose,a rose field on the moon,planets,loneliness,sparkling starry sky,wool felt,handcrafted,artistic,3D,realistic 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,Multiple people,cleavage,", + "seed": -1, + "sampler_name": "DPM++ 3M SDE", + "cfg_scale": 7, + "width": 1024, + "height": 1536, + "batch_size": 1, + "n_iter": 1, + "steps": 30, + "return_grid": true, + "send_images": true, + "save_images": false, + "do_not_save_samples": false, + "do_not_save_grid": false, + "override_settings": { + "sd_model_checkpoint": "SDXL 正式版_sdxl_1.0.safetensors [31e35c80fc]", + "sd_vae": "Automatic" + }, + "alwayson_scripts": { + "ControlNet": { + "args": [ + { + "enabled": true, + "model": "ip-adapter-faceid-plusv2_sdxl [187cb962]", + "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": false, + "input_image": "{{input_image1}}" + } + ] + } + } +} \ No newline at end of file diff --git a/BaiHu/JSON/44_2.json b/BaiHu/JSON/44_2.json new file mode 100644 index 00000000..452d4422 --- /dev/null +++ b/BaiHu/JSON/44_2.json @@ -0,0 +1,44 @@ +{ + "model_name": "黏土世界", + "memo": "【半身】", + "pose_image": "", + "prompt": + "Felt world,felt style,Felt-World(style),1girl,,,", + "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,Multiple people,cleavage,", + "seed": -1, + "sampler_name": "DPM++ 3M SDE", + "cfg_scale": 7, + "width": 1024, + "height": 1536, + "batch_size": 1, + "n_iter": 1, + "steps": 30, + "return_grid": true, + "send_images": true, + "save_images": false, + "do_not_save_samples": false, + "do_not_save_grid": false, + "override_settings": { + "sd_model_checkpoint": "SDXL 正式版_sdxl_1.0.safetensors [31e35c80fc]", + "sd_vae": "Automatic" + }, + "alwayson_scripts": { + "ControlNet": { + "args": [ + { + "enabled": true, + "model": "ip-adapter-faceid-plusv2_sdxl [187cb962]", + "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": false, + "input_image": "{{input_image1}}" + } + ] + } + } +} \ No newline at end of file diff --git a/BaiHu/JSON/44_3.json b/BaiHu/JSON/44_3.json new file mode 100644 index 00000000..452d4422 --- /dev/null +++ b/BaiHu/JSON/44_3.json @@ -0,0 +1,44 @@ +{ + "model_name": "黏土世界", + "memo": "【半身】", + "pose_image": "", + "prompt": + "Felt world,felt style,Felt-World(style),1girl,,,", + "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,Multiple people,cleavage,", + "seed": -1, + "sampler_name": "DPM++ 3M SDE", + "cfg_scale": 7, + "width": 1024, + "height": 1536, + "batch_size": 1, + "n_iter": 1, + "steps": 30, + "return_grid": true, + "send_images": true, + "save_images": false, + "do_not_save_samples": false, + "do_not_save_grid": false, + "override_settings": { + "sd_model_checkpoint": "SDXL 正式版_sdxl_1.0.safetensors [31e35c80fc]", + "sd_vae": "Automatic" + }, + "alwayson_scripts": { + "ControlNet": { + "args": [ + { + "enabled": true, + "model": "ip-adapter-faceid-plusv2_sdxl [187cb962]", + "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": false, + "input_image": "{{input_image1}}" + } + ] + } + } +} \ No newline at end of file diff --git a/BaiHu/JSON/44_4.json b/BaiHu/JSON/44_4.json new file mode 100644 index 00000000..5c4040b7 --- /dev/null +++ b/BaiHu/JSON/44_4.json @@ -0,0 +1,44 @@ +{ + "model_name": "黏土世界", + "memo": "【半身】", + "pose_image": "", + "prompt": + "Felt world,felt style,Felt-World(style),upper body close-up,1 girl,black hair,big eyes,standing in the meadow,blue sky,movie lighting,OC rendering,ultra detailed details,3D,4K,,,", + "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,Multiple people,cleavage,", + "seed": -1, + "sampler_name": "DPM++ 3M SDE", + "cfg_scale": 7, + "width": 1024, + "height": 1536, + "batch_size": 1, + "n_iter": 1, + "steps": 30, + "return_grid": true, + "send_images": true, + "save_images": false, + "do_not_save_samples": false, + "do_not_save_grid": false, + "override_settings": { + "sd_model_checkpoint": "SDXL 正式版_sdxl_1.0.safetensors [31e35c80fc]", + "sd_vae": "Automatic" + }, + "alwayson_scripts": { + "ControlNet": { + "args": [ + { + "enabled": true, + "model": "ip-adapter-faceid-plusv2_sdxl [187cb962]", + "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": false, + "input_image": "{{input_image1}}" + } + ] + } + } +} \ No newline at end of file diff --git a/BaiHu/JSON/44_5.json b/BaiHu/JSON/44_5.json new file mode 100644 index 00000000..389d9315 --- /dev/null +++ b/BaiHu/JSON/44_5.json @@ -0,0 +1,44 @@ +{ + "model_name": "黏土世界", + "memo": "【半身】", + "pose_image": "", + "prompt": + "Felt world,felt style,Felt-World(style),young girl,smiling,sitting,white dress,long hair,crossed legs,white socks,,,", + "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,Multiple people,cleavage,", + "seed": -1, + "sampler_name": "DPM++ 3M SDE", + "cfg_scale": 7, + "width": 1024, + "height": 1536, + "batch_size": 1, + "n_iter": 1, + "steps": 30, + "return_grid": true, + "send_images": true, + "save_images": false, + "do_not_save_samples": false, + "do_not_save_grid": false, + "override_settings": { + "sd_model_checkpoint": "SDXL 正式版_sdxl_1.0.safetensors [31e35c80fc]", + "sd_vae": "Automatic" + }, + "alwayson_scripts": { + "ControlNet": { + "args": [ + { + "enabled": true, + "model": "ip-adapter-faceid-plusv2_sdxl [187cb962]", + "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": false, + "input_image": "{{input_image1}}" + } + ] + } + } +} \ No newline at end of file diff --git a/BaiHu/Tools/addModel.py b/BaiHu/Tools/addModel.py index e898c860..ddceba33 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 = 43 +model_id = 44 # 模型名称 -model_name = '花样年华' +model_name = '黏土世界' # 提示信息 memo = '1、请上传正面半身照。; 2、确保脸部无遮挡;3、图片要求不小于1.5MB(正常手机拍照即可)' @@ -30,7 +30,7 @@ model_type_id = 2 3 风格写真 4 双人系列 ''' -style_id = 2 +style_id = 1 is_cover = 1 params = (model_id, model_name, memo, star, img_count, model_type_id, style_id, is_cover) diff --git a/BaiHu/doTask.py b/BaiHu/doTask.py index cf191a4c..65f6accc 100644 --- a/BaiHu/doTask.py +++ b/BaiHu/doTask.py @@ -1,3 +1,4 @@ +import json import os import os.path from urllib.parse import urlparse @@ -31,6 +32,10 @@ def webui_txt_2_img(model_id, json_data, input_image, target_folder): prompt = json_data['prompt'] # 图片 args = json_data['alwayson_scripts']['ControlNet']['args'] + + #pretty_json = json.dumps(json_data, indent=4,ensure_ascii=False) + #print(pretty_json) + pose_image = json_data['pose_image'] args[0]['input_image'] = encode_image(input_image[0]) # 如果有特殊的姿态要求,那就用模板指定的姿态图 diff --git a/QingLong/src/main/java/com/dsideal/QingLong/HuiYa/Model/HuiYaModel.java b/QingLong/src/main/java/com/dsideal/QingLong/HuiYa/Model/HuiYaModel.java index eb4f740c..06335cd1 100644 --- a/QingLong/src/main/java/com/dsideal/QingLong/HuiYa/Model/HuiYaModel.java +++ b/QingLong/src/main/java/com/dsideal/QingLong/HuiYa/Model/HuiYaModel.java @@ -16,7 +16,6 @@ import com.jfinal.plugin.activerecord.Record; import com.jfinal.plugin.activerecord.SqlPara; import java.time.*; -import java.time.format.DateTimeFormatter; import java.time.temporal.Temporal; import java.util.*; diff --git a/文档/揽睿星舟购买情况.txt b/文档/揽睿星舟购买情况.txt index 1e817111..4cc27a51 100644 --- a/文档/揽睿星舟购买情况.txt +++ b/文档/揽睿星舟购买情况.txt @@ -1,9 +1,16 @@ +揽睿星舟 +云GPU算力租赁平台,已购买500元,剩余400多元可用。 + +用途 +学习StableDiffusion,ComfyUI等 + 官网 https://www.lanrui-ai.com/ 登录 -黄海的微信 -绑定手机号 18686619970 +手机号: 18686619970 +密码:DsideaL4r5t6y7u + 文件采用客户端上传: https://doc-rde.lanrui-ai.com/docs/yong-hu-shou-ce/zui-jia-shi-jian/shang-chuan-wang-pan-de-xiao-miao-zhao/