Skip to content

Commit 5e31ef6

Browse files
committed
Clean slate initiative.
New node suite for creative professionals.
1 parent d6ca4b8 commit 5e31ef6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+455
-2693
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

FS_Assets.py

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Project: FlowState Assets
22
# Description: Paths to assets needed by nodes.
33
# Author: Johnathan Chivington
4-
# Contact: johnathan@flowstateengineering.com | youtube.com/@flowstateeng
4+
# Contact: flowstateeng@gmail.com | youtube.com/@flowstateeng
55

66

77
##
@@ -15,6 +15,7 @@
1515
# OUTSIDE IMPORTS
1616
##
1717
import os
18+
import comfy
1819
import folder_paths
1920

2021

@@ -25,28 +26,19 @@
2526
FONT_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'fonts/ShareTechMono-Regular.ttf')
2627

2728

28-
UNET_LIST_PATH = None
29-
try:
30-
UNET_LIST_PATH = folder_paths.get_filename_list('diffusion_models')
31-
UNET_LIST_PATH = lambda: folder_paths.get_filename_list('diffusion_models')
32-
except ImportError:
33-
UNET_LIST_PATH = None
29+
DIFFUSION_MODELS_LIST = lambda: folder_paths.get_filename_list('unet') + folder_paths.get_filename_list('diffusion_models')
30+
CHECKPOINTS_LIST = lambda: folder_paths.get_filename_list('checkpoints')
31+
CLIPS_LIST = lambda: folder_paths.get_filename_list('clip')
32+
VAES_LIST = lambda: get_vae_list()
3433

35-
if UNET_LIST_PATH == None:
36-
try:
37-
UNET_LIST_PATH = folder_paths.get_filename_list('unet')
38-
UNET_LIST_PATH = lambda: folder_paths.get_filename_list('unet')
39-
except ImportError:
40-
UNET_LIST_PATH = None
34+
CONTROL_NETS_LIST = lambda: folder_paths.get_filename_list('controlnet')
35+
LORAS_LIST = lambda: folder_paths.get_filename_list('loras')
4136

42-
print(f' - Setting UNET_LIST_PATH to: {UNET_LIST_PATH}')
37+
SAMPLERS_LIST = lambda: comfy.samplers.KSampler.SAMPLERS
38+
SCHEDULERS_LIST = lambda: comfy.samplers.KSampler.SCHEDULERS
4339

40+
ALL_MODELS_LIST = lambda: DIFFUSION_MODELS_LIST() + CHECKPOINTS_LIST()
4441

45-
NF4_LIST_PATH = lambda: folder_paths.get_filename_list('checkpoints')
46-
CKPT_LIST_PATH = lambda: folder_paths.get_filename_list('checkpoints')
47-
CLIP_LIST_PATH = lambda: folder_paths.get_filename_list('clip')
48-
VAE_LIST_PATH = lambda: get_vae_list()
49-
CONTROL_NET_LIST_PATH = lambda: folder_paths.get_filename_list('controlnet')
50-
LORA_LIST_PATH = lambda: folder_paths.get_filename_list('loras')
51-
ALL_MODEL_LIST_PATHS = lambda: UNET_LIST_PATH() + CKPT_LIST_PATH()
42+
INPUT_FILES = lambda: get_input_files()
43+
OUTPUT_FILES = lambda: get_output_files()
5244

FS_Constants.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Project: FlowState Constants
22
# Description: Global constants for all nodes.
33
# Author: Johnathan Chivington
4-
# Contact: johnathan@flowstateengineering.com | youtube.com/@flowstateeng
4+
# Contact: flowstateeng@gmail.com | youtube.com/@flowstateeng
55

66

77
##
@@ -13,15 +13,5 @@
1313
# CONSTANTS
1414
##
1515
MAX_RESOLUTION=16384
16-
GLOBAL_MODELS_DIR = os.path.join(folder_paths.models_dir, 'llm_gguf')
17-
DEFAULT_INSTRUCTIONS = 'Generate a prompt from "{prompt}"'
18-
FS_LLM_PROMPT_TAG = '@FLOWSTATE_LLM_PROMPT'
1916

20-
CLIP_PRESETS = {
21-
'default': [1, 1, 1, 1],
22-
'clarity_boost': [0.9, 0.9, 1.4, 8.4],
23-
'even_flow': [1, 1, 1, 4],
24-
'subtle_focus': [0.9, 0.9, 1, 4],
25-
'sharp_detail': [1, 1, 1, 8.4]
26-
}
2717

FS_Mappings.py

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Project: FlowState Node Mappings
22
# Description: Node mappings for ComfyUI registry.
33
# Author: Johnathan Chivington
4-
# Contact: johnathan@flowstateengineering.com | youtube.com/@flowstateeng
4+
# Contact: flowstateeng@gmail.com | youtube.com/@flowstateeng
55

66

77
##
@@ -13,38 +13,27 @@
1313
##
1414
# SYSTEM STATUS
1515
##
16-
print(f' - Loading node name mappings...')
16+
print(f' 3. 💾 Loading node name mappings...')
1717

1818

1919
##
2020
# MAPPINGS
2121
##
2222
NODE_CLASS_MAPPINGS = {
23-
'FlowStateUnifiedVideoSampler': FlowStateUnifiedVideoSampler,
24-
'FlowStateUnifiedSampler': FlowStateUnifiedSampler,
25-
'FlowStateUnifiedModelLoader': FlowStateUnifiedModelLoader,
26-
'FlowStateUnifiedPrompt': FlowStateUnifiedPrompt,
27-
'FlowStatePromptOutput': FlowStatePromptOutput,
28-
'FlowStateLatentChooser': FlowStateLatentChooser,
29-
'FlowStateUnifiedStyler': FlowStateUnifiedStyler
23+
'FlowState_LatentSelector': FlowState_LatentSelector,
24+
# 'FlowState_FluxSampler': FlowState_FluxSampler,
3025
}
3126

3227
NODE_DISPLAY_NAME_MAPPINGS = {
33-
'FlowStateUnifiedVideoSampler': 'FlowState Unified Video Sampler',
34-
'FlowStateUnifiedSampler': 'FlowState Unified Sampler',
35-
'FlowStateUnifiedModelLoader': 'FlowState Unified Model Loader',
36-
'FlowStateUnifiedPrompt': 'FlowState Unified Prompt',
37-
'FlowStatePromptOutput': 'FlowState Prompt Output',
38-
'FlowStateLatentChooser': 'FlowState Latent Chooser',
39-
'FlowStateUnifiedStyler': 'FlowState Unified Styler'
28+
'FlowState_LatentSelector': '🌊 FlowState Latent Selector',
29+
# 'FlowState_FluxSampler': '🌊 FlowState Flux Sampler',
4030
}
4131

4232

4333
##
4434
# SYSTEM STATUS
4535
##
46-
print(f' - Mappings Loaded. Available nodes:')
47-
4836
for fs_node in NODE_CLASS_MAPPINGS:
49-
print(f' - {fs_node}: {NODE_CLASS_MAPPINGS[fs_node]}')
37+
print(f'\t - ✅ {fs_node}: {NODE_DISPLAY_NAME_MAPPINGS[fs_node]}')
5038

39+
print(f'\t - ✅ Mappings Loaded.')

FS_Nodes.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
1-
# Project: FlowState Nodes
1+
# Project: FlowState Creator Nodes
22
# Description: A collection of custom nodes to solve problems I couldn't find existing nodes for.
33
# Author: Johnathan Chivington
4-
# Contact: johnathan@flowstateengineering.com | youtube.com/@flowstateeng
4+
# Contact: flowstateeng@gmail.com | youtube.com/@flowstateeng
55

66

77

88
##
99
# SYSTEM STATUS
1010
##
11-
print(f' - Loading custom nodes...')
11+
print(f' 2. 💾 Loading custom nodes...')
1212

1313

1414
##
1515
# NODES
1616
##
17-
from .FlowStateUnifiedVideoSampler import *
18-
from .FlowStateUnifiedSampler import *
19-
from .FlowStateUnifiedPrompt import *
20-
from .FlowStateUnifiedModelLoader import *
21-
from .FlowStateLatentChooser import *
22-
from .FlowStateUnifiedStyler import *
17+
from .FlowState_LatentSelector import *
2318

2419

2520
##
2621
# SYSTEM STATUS
2722
##
28-
print(f' - Nodes Loaded.')
23+
print(f'\t - ✅ All nodes Loaded.')
2924

0 commit comments

Comments
 (0)