The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
First step of supporting save filenames without trailing _ (#13722)
comfyanonymousc168960a1221
diff --git a/folder_paths.py b/folder_paths.pyindex 80f4b291a..039f72636 100644--- a/folder_paths.py+++ b/folder_paths.py@@ -432,7 +432,9 @@ def get_save_image_path(filename_prefix: str, output_dir: str, image_width=0, imprefix_len = len(os.path.basename(filename_prefix))prefix = filename[:prefix_len + 1]try:- digits = int(filename[prefix_len + 1:].split('_')[0])+ remainder = filename[prefix_len + 1:]+ base_remainder = remainder.split('.')[0]+ digits = int(base_remainder.split('_')[0])except:digits = 0return digits, prefix