Small comment update to clarify how load order is decided.

This commit is contained in:
Peyton
2023-08-06 17:16:00 -05:00
parent a136031c2c
commit 54c26fb64c
+1 -1
View File
@@ -104,7 +104,7 @@ def determine_load_order(data: Dict) -> List:
# Add the key and its corresponding data to the load order list.
load_order.append((key, data[key], is_loader))
# Load Loader keys first
# Load Loader, encoder, and keys without dependenciesfirst
for key in data:
class_def = NODE_CLASS_MAPPINGS[data[key]['class_type']]()
if class_def.CATEGORY == 'loaders' or class_def.FUNCTION in ['encode'] or not any(isinstance(val, list) for val in data[key]['inputs'].values()):