mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-04-16 19:17:00 +08:00
Update nodes.py
This commit is contained in:
parent
ebd5915d8e
commit
22231d401a
@ -755,8 +755,11 @@ class EmptyLatentImagePresets:
|
||||
class EmptyLatentImageCustomPresets:
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
with open(os.path.join(script_directory, 'custom_dimensions.json')) as f:
|
||||
dimensions_dict = json.load(f)
|
||||
try:
|
||||
with open(os.path.join(script_directory, 'custom_dimensions.json')) as f:
|
||||
dimensions_dict = json.load(f)
|
||||
except FileNotFoundError:
|
||||
dimensions_dict = []
|
||||
return {
|
||||
"required": {
|
||||
"dimensions": (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user