Update block.py
Browse files
block.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
-
from diffusers.modular_pipelines import
|
| 2 |
from diffusers.utils import load_image
|
| 3 |
from PIL import Image
|
| 4 |
import cv2
|
| 5 |
import numpy as np
|
| 6 |
|
| 7 |
-
class GetImageStep(
|
| 8 |
|
| 9 |
PROCESSOR_IDS = set([
|
| 10 |
"canny", "lineart_anime",
|
|
|
|
| 1 |
+
from diffusers.modular_pipelines import ModularPipelineBlocks, PipelineState, InputParam, OutputParam
|
| 2 |
from diffusers.utils import load_image
|
| 3 |
from PIL import Image
|
| 4 |
import cv2
|
| 5 |
import numpy as np
|
| 6 |
|
| 7 |
+
class GetImageStep(ModularPipelineBlocks):
|
| 8 |
|
| 9 |
PROCESSOR_IDS = set([
|
| 10 |
"canny", "lineart_anime",
|