Browse Source

修复变身失败

关习习 1 month ago
parent
commit
70e4a34374
1 changed files with 2 additions and 0 deletions
  1. 2 0
      ai_pic.py

+ 2 - 0
ai_pic.py

@@ -134,6 +134,8 @@ def get_images_from_filenames(image_filenames):
     """
     """
     base_url = "http://"+ip+"/view"
     base_url = "http://"+ip+"/view"
     output_folder = f"{file_path}/output"
     output_folder = f"{file_path}/output"
+    if not os.path.exists(output_folder):
+        os.makedirs(output_folder)
     for filename in image_filenames:
     for filename in image_filenames:
         params = {
         params = {
             "filename": filename,
             "filename": filename,