File size: 837 Bytes
efc1c32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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()