Download __init__.py from Goodis/SwarmComfyExtra: direct link, hf CLI and curl.
- Browser
- Download file 837 Bytes
-
https://huggingface.co/Goodis/SwarmComfyExtra/resolve/main/__init__.py
- Command line
-
hf download hf://Goodis/SwarmComfyExtra/__init__.py
-
curl -L -o __init__.py https://huggingface.co/Goodis/SwarmComfyExtra/resolve/main/__init__.py
837 Bytes
| import traceback | |
| NODE_CLASS_MAPPINGS = {} | |
| # RemBg doesn't work on all python versions and OS's | |
| try: | |
| from . import SwarmRemBg | |
| NODE_CLASS_MAPPINGS.update(SwarmRemBg.NODE_CLASS_MAPPINGS) | |
| except ImportError: | |
| print("Error: [Swarm] RemBg not available") | |
| traceback.print_exc() | |
| # This uses FFMPEG which doesn't install itself properly on Macs I guess? | |
| try: | |
| from . import SwarmSaveAnimationWS | |
| NODE_CLASS_MAPPINGS.update(SwarmSaveAnimationWS.NODE_CLASS_MAPPINGS) | |
| except ImportError: | |
| print("Error: [Swarm] SaveAnimationWS not available") | |
| traceback.print_exc() | |
| # Yolo uses Ultralytics, which is cursed | |
| try: | |
| from . import SwarmYolo | |
| NODE_CLASS_MAPPINGS.update(SwarmYolo.NODE_CLASS_MAPPINGS) | |
| except ImportError: | |
| print("Error: [Swarm] Yolo not available") | |
| traceback.print_exc() | |