Add latent sidecars to fast saver
This commit is contained in:
+40
-16
@@ -1,19 +1,43 @@
|
||||
from .json_loader_dynamic import (
|
||||
NODE_CLASS_MAPPINGS as _json_class_mappings,
|
||||
NODE_DISPLAY_NAME_MAPPINGS as _json_display_mappings,
|
||||
)
|
||||
from .string_utils import (
|
||||
NODE_CLASS_MAPPINGS as _string_class_mappings,
|
||||
NODE_DISPLAY_NAME_MAPPINGS as _string_display_mappings,
|
||||
)
|
||||
from .image_preview import (
|
||||
NODE_CLASS_MAPPINGS as _image_class_mappings,
|
||||
NODE_DISPLAY_NAME_MAPPINGS as _image_display_mappings,
|
||||
)
|
||||
from .fast_saver import (
|
||||
NODE_CLASS_MAPPINGS as _saver_class_mappings,
|
||||
NODE_DISPLAY_NAME_MAPPINGS as _saver_display_mappings,
|
||||
)
|
||||
if __package__:
|
||||
from .json_loader_dynamic import (
|
||||
NODE_CLASS_MAPPINGS as _json_class_mappings,
|
||||
NODE_DISPLAY_NAME_MAPPINGS as _json_display_mappings,
|
||||
)
|
||||
from .string_utils import (
|
||||
NODE_CLASS_MAPPINGS as _string_class_mappings,
|
||||
NODE_DISPLAY_NAME_MAPPINGS as _string_display_mappings,
|
||||
)
|
||||
from .image_preview import (
|
||||
NODE_CLASS_MAPPINGS as _image_class_mappings,
|
||||
NODE_DISPLAY_NAME_MAPPINGS as _image_display_mappings,
|
||||
)
|
||||
from .fast_saver import (
|
||||
NODE_CLASS_MAPPINGS as _saver_class_mappings,
|
||||
NODE_DISPLAY_NAME_MAPPINGS as _saver_display_mappings,
|
||||
)
|
||||
else:
|
||||
from json_loader_dynamic import (
|
||||
NODE_CLASS_MAPPINGS as _json_class_mappings,
|
||||
NODE_DISPLAY_NAME_MAPPINGS as _json_display_mappings,
|
||||
)
|
||||
from string_utils import (
|
||||
NODE_CLASS_MAPPINGS as _string_class_mappings,
|
||||
NODE_DISPLAY_NAME_MAPPINGS as _string_display_mappings,
|
||||
)
|
||||
try:
|
||||
from image_preview import (
|
||||
NODE_CLASS_MAPPINGS as _image_class_mappings,
|
||||
NODE_DISPLAY_NAME_MAPPINGS as _image_display_mappings,
|
||||
)
|
||||
except ModuleNotFoundError as e:
|
||||
if e.name != "folder_paths":
|
||||
raise
|
||||
_image_class_mappings = {}
|
||||
_image_display_mappings = {}
|
||||
from fast_saver import (
|
||||
NODE_CLASS_MAPPINGS as _saver_class_mappings,
|
||||
NODE_DISPLAY_NAME_MAPPINGS as _saver_display_mappings,
|
||||
)
|
||||
|
||||
NODE_CLASS_MAPPINGS = {**_json_class_mappings, **_string_class_mappings, **_image_class_mappings, **_saver_class_mappings}
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {**_json_display_mappings, **_string_display_mappings, **_image_display_mappings, **_saver_display_mappings}
|
||||
|
||||
Reference in New Issue
Block a user