Diffusers
sayakpaul HF Staff commited on
Commit
17ad199
·
verified ·
1 Parent(s): 6d3538a

Update canny_block.py

Browse files
Files changed (1) hide show
  1. 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
- "canny_map",
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.canny_map = self.compute_canny(
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,