新的信息

This commit is contained in:
dongchangxi committed 2024-09-02 16:52:37 +08:00
1 parent c66fc76e10
commit 345790cb05
51 files changed
+5187 -61

No files matched your search

+10 -6
View File
@@ -206,13 +206,11 @@ def step3(pid,task_distributed_id=""):
export_and_update_obj(pid)
resize_texture_and_reload_obj(pid)
export_and_update_glbs(pid)
#向gpu服务器数据库添加一条数据用于AI自动修模,目前显示修复脸,不能上传更新建模状态,防止任务进入到修模部,人数为1才进行处理
headCount = libs.getHeadCount(pid)
#if headCount == 1:
libs_db_gpu.add_task(data={"pid":pid,"cut_body":"face","heads":headCount})
#向gpu数据库task 插入任务,用于开始执行AI修模
headcount = libs.getHeadCount(pid)
#if headcount == 1:
libs_db_gpu.add_task(data={"pid":pid,"cut_body":"face","heads":headcount})
# 更新本地任务状态,更新云端任务状态
print(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} pid: {pid} 模型后道处理完成,共费时{libs.diff_time(start_time)}')
res = requests.post(config.urls['update_status_modelsuccess_url'], data={'id': pid})
@@ -228,6 +226,12 @@ def step3(pid,task_distributed_id=""):
print("step3 已执行完成")
#return
common.removeFolder(str(pid))
os.system(f"python D:/make2/tools/get_weight_by_pid.py {pid}")
#执行模型优化,异步调用,再ai_repair 服务区上执行
os.system(f"python D://make2/tools/optimize_model/main.py {pid}")
def main(pid):
if pid == '0':
while True: