mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-04-01 21:46:58 +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 json
|
||||
import hashlib
|
||||
import cv2
|
||||
try:
|
||||
import cv2
|
||||
except:
|
||||
print("OpenCV not installed")
|
||||
pass
|
||||
from PIL import ImageGrab, ImageDraw, ImageFont, Image, ImageSequence, ImageOps
|
||||
|
||||
from nodes import MAX_RESOLUTION, SaveImage
|
||||
|
||||
@ -5,7 +5,10 @@ from PIL import Image, ImageDraw, ImageFilter, ImageFont
|
||||
import scipy.ndimage
|
||||
import numpy as np
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
try:
|
||||
import matplotlib.pyplot as plt
|
||||
except:
|
||||
print("Matplotlib not installed")
|
||||
from contextlib import nullcontext
|
||||
import os
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user