mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-07-09 19:17:16 +08:00
don't require cv2 for everything
This commit is contained in:
parent
dc479dc2ef
commit
c08c858374
@ -8,7 +8,11 @@ import os
|
|||||||
import re
|
import re
|
||||||
import json
|
import json
|
||||||
import hashlib
|
import hashlib
|
||||||
import cv2
|
try:
|
||||||
|
import cv2
|
||||||
|
except:
|
||||||
|
print("OpenCV not installed")
|
||||||
|
pass
|
||||||
from PIL import ImageGrab, ImageDraw, ImageFont, Image, ImageSequence, ImageOps
|
from PIL import ImageGrab, ImageDraw, ImageFont, Image, ImageSequence, ImageOps
|
||||||
|
|
||||||
from nodes import MAX_RESOLUTION, SaveImage
|
from nodes import MAX_RESOLUTION, SaveImage
|
||||||
|
|||||||
@ -5,7 +5,10 @@ from PIL import Image, ImageDraw, ImageFilter, ImageFont
|
|||||||
import scipy.ndimage
|
import scipy.ndimage
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
import matplotlib.pyplot as plt
|
try:
|
||||||
|
import matplotlib.pyplot as plt
|
||||||
|
except:
|
||||||
|
print("Matplotlib not installed")
|
||||||
from contextlib import nullcontext
|
from contextlib import nullcontext
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user