原始的step1 2 3 和 manual
This commit is contained in:
1 parent
3fa8457411
commit
ecb58b2f59
4 files changed
+25
-4
No files matched your search
+7
-1
@@ -6,7 +6,7 @@ if platform.system() == 'Windows':
|
||||
#sys.path.append('libs')
|
||||
else:
|
||||
sys.path.append('/data/deploy/make3d/make2/libs/')
|
||||
import config, libs, libs_db,main_service_db,common,foot_mark_seam
|
||||
import config, libs, libs_db,main_service_db,common,foot_mark_seam,libs_db_gpu
|
||||
|
||||
def bmesh_copy_from_object(obj, transform=True, triangulate=True, apply_modifiers=False):
|
||||
"""Returns a transformed, triangulated copy of the mesh"""
|
||||
@@ -207,6 +207,12 @@ def step3(pid,task_distributed_id=""):
|
||||
resize_texture_and_reload_obj(pid)
|
||||
export_and_update_glbs(pid)
|
||||
|
||||
#向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})
|
||||
|
||||
Reference in new issue
Block a user