Last active
October 12, 2024 10:13
-
-
Save silentsudo/aca7f9e4122770033b8c129814663962 to your computer and use it in GitHub Desktop.
comfyui save image like automatic1111
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index 01ae821..bc0668e 100644 | |
--- a/folder_paths.py | |
+++ b/folder_paths.py | |
@@ -4,6 +4,7 @@ import os | |
import time | |
import mimetypes | |
import logging | |
+import datetime | |
from typing import Set, List, Dict, Tuple, Literal | |
from collections.abc import Collection | |
@@ -38,8 +39,8 @@ folder_names_and_paths["hypernetworks"] = ([os.path.join(models_dir, "hypernetwo | |
folder_names_and_paths["photomaker"] = ([os.path.join(models_dir, "photomaker")], supported_pt_extensions) | |
folder_names_and_paths["classifiers"] = ([os.path.join(models_dir, "classifiers")], {""}) | |
- | |
-output_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), "output") | |
+today = f"{datetime.datetime.now():%Y-%m-%d}" | |
+output_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), f"output/{today}") | |
temp_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), "temp") | |
input_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), "input") | |
user_directory = os.path.join(os.path.dirname(os.path.realpath(__file__)), "user") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment