Dr.Lt.Data
2024-03-05 10:46:02 +09:00
parent ac80b49c3f
commit 2fba14e1de
2 changed files with 6 additions and 2 deletions
+6 -1
View File
@@ -2,9 +2,14 @@ import os
from PIL import ImageOps
from impact.utils import *
from . import core
# NOTE: this should not be `from . import core`.
# I don't know why but... 'from .' and 'from impact' refer to different core modules.
# This separates global variables of the core module and breaks the preview bridge.
from impact import core
# <--
import random
class PreviewBridge:
@classmethod
def INPUT_TYPES(s):
-1
View File
@@ -1,4 +1,3 @@
import torch
from segment_anything import SamPredictor
from impact.utils import *