save code
This commit is contained in:
+1
-1
@@ -257,7 +257,7 @@ def change(human_name, cloth_name, c_width, c_height, cloth_url, human_url, no2)
|
||||
else:
|
||||
print(f'要第二部 no2{no2} 先搞第一步')
|
||||
# thigh_visible = is_thigh_visible(f"/home/szlc/code/ComfyUI/input/{human_name}")
|
||||
if sgwzd > 0.5:
|
||||
if sgwzd >= 0.5:
|
||||
#脱衣服
|
||||
takeoff_file_name = takeoff_cloth_first(human_name, sex_girl)
|
||||
if takeoff_file_name == None:
|
||||
|
||||
@@ -305,9 +305,9 @@ def main_worker():
|
||||
time.sleep(0.1)
|
||||
|
||||
serverindex = 0
|
||||
def regServer(instance):
|
||||
def regServer(instance, ip):
|
||||
global serverindex
|
||||
registerGpuServer(f"s{serverindex}_1_{instance}", f"http://localhost:8888", True)
|
||||
registerGpuServer(f"s{serverindex}_1_{instance}", f"http://{ip}:8888", True)
|
||||
serverindex += 1
|
||||
|
||||
|
||||
@@ -316,6 +316,7 @@ if __name__ == '__main__':
|
||||
print(f"[Worker] Starting with PID: {os.getpid()}")
|
||||
redis_conn.set(GPU_SERVER_LIST, "[]")
|
||||
|
||||
regServer("localhost")
|
||||
regServer("一号", "192.168.101.118")
|
||||
regServer("二号", "192.168.101.221")
|
||||
|
||||
main_worker()
|
||||
Reference in New Issue
Block a user