Browse Source

高精模判断

master
dongchangxi 2 years ago
parent
commit
e83deda268
  1. 13
      libs/common.py

13
libs/common.py

@ -30,13 +30,12 @@ def task_need_high_model(pid): @@ -30,13 +30,12 @@ def task_need_high_model(pid):
#判断是否需要高精模
if libs.get_ps_type(pid) == 1:
if libs.aliyun_face(pid):
#calulate_type = 'calculateHighModel'
redis_conn.sadd("calculateHighModel",pid)
return True
else:
redis_conn.sadd("calculateHighModel_no",pid)
if libs.aliyun_face(pid):
#calulate_type = 'calculateHighModel'
redis_conn.sadd("calculateHighModel",pid)
return True
else:
redis_conn.sadd("calculateHighModel_no",pid)
return False
#判断是否需要photo3参与建模

Loading…
Cancel
Save