Update canny_block.py
Browse files- canny_block.py +2 -2
canny_block.py
CHANGED
@@ -54,7 +54,7 @@ class CannyBlock(ModularPipelineBlocks):
|
|
54 |
def intermediate_outputs(self) -> List[OutputParam]:
|
55 |
return [
|
56 |
OutputParam(
|
57 |
-
"
|
58 |
type_hint=Image,
|
59 |
description="Canny map for input image",
|
60 |
)
|
@@ -74,7 +74,7 @@ class CannyBlock(ModularPipelineBlocks):
|
|
74 |
def __call__(self, components, state: PipelineState) -> PipelineState:
|
75 |
block_state = self.get_block_state(state)
|
76 |
|
77 |
-
block_state.
|
78 |
components,
|
79 |
block_state.image,
|
80 |
block_state.low_threshold,
|
|
|
54 |
def intermediate_outputs(self) -> List[OutputParam]:
|
55 |
return [
|
56 |
OutputParam(
|
57 |
+
"control_image",
|
58 |
type_hint=Image,
|
59 |
description="Canny map for input image",
|
60 |
)
|
|
|
74 |
def __call__(self, components, state: PipelineState) -> PipelineState:
|
75 |
block_state = self.get_block_state(state)
|
76 |
|
77 |
+
block_state.control_image = self.compute_canny(
|
78 |
components,
|
79 |
block_state.image,
|
80 |
block_state.low_threshold,
|