-
Notifications
You must be signed in to change notification settings - Fork 19
/
__init__.py
52 lines (43 loc) · 1.74 KB
/
__init__.py
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import os
import torch
print('torch version----------------------', torch.__version__)
import subprocess
import sys
def install_package(package_name):
subprocess.check_call([sys.executable, "-m", "pip", "install", package_name])
package_list = ["imageio", "cupy", "imageio_ffmpeg", 'cv2'] # Replace with your list of packages
install_name = ['imageio', 'cupy-cuda12x', 'imageio[ffmpeg]', 'opencv-python-headless']
for package, name in zip(package_list, install_name):
try:
__import__(package)
except ImportError:
install_package(name)
from .masknumcap import MaskListcaptoBatch
from .myopenpose import MyOpenPoseNode
from .filldarkmask import FillDarkMask
from .interpolatekeyframe import InterpolateKeyFrame
from .smoothVideo import SmoothVideo
from .rebatchimage import reBatchImage
from .alert_when_finished import alert_when_finished
from .merge_image_list import Merge_Image_List
NODE_CLASS_MAPPINGS = {
"MaskListcaptoBatch": MaskListcaptoBatch,
"MyOpenPoseNode": MyOpenPoseNode,
"FillDarkMask": FillDarkMask,
"InterpolateKeyFrame": InterpolateKeyFrame,
"SmoothVideo": SmoothVideo,
"reBatchImage": reBatchImage,
"alert_when_finished": alert_when_finished,
"Merge_Image_List": Merge_Image_List
}
# A dictionary that contains the friendly/humanly readable titles for the nodes
NODE_DISPLAY_NAME_MAPPINGS = {
"MaskListcaptoBatch": "Mask List cap toBatch",
"MyOpenPoseNode": "My OpenPose Node",
"FillDarkMask": "Fill Dark Mask",
"InterpolateKeyFrame": "Interpolate KeyFrame",
"SmoothVideo": "Smooth Video",
"reBatchImage": "reBatch Image",
"alert_when_finished": "alert when finished",
"Merge_Image_List": "Merge Image List"
}