Browse Source

add save src face

ming 3 years ago
parent
commit
2766683672
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/main.py

+ 1 - 1
api/main.py

@@ -181,7 +181,7 @@ def gen_avatar(name_hash, imgurl):
     while True:
 
         directory= os.listdir('../../face_swap/tmp_face/') 
-        if len(directory) == 0 and os.path.isdir('../../face_swap/queueFlag'):
+        if len(directory) == 0 and not os.path.isdir('../../face_swap/queueFlag'):
             os.mkdir('../../face_swap/queueFlag')
             c = rpyc.connect("localhost", 8868)
             c._config['sync_request_timeout'] = None