mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Refactored ControlNet nodes so they subclass from PreprocessedControlInvocation, and only need to override run_processor(image) (instead of reimplementing invoke())
This commit is contained in:
parent
4ae4bf4ff9
commit
6d958a214c
@ -113,7 +113,10 @@ class ControlOutput(BaseInvocationOutput):
|
||||
control: ControlField = Field(default=None, description="The control info dict")
|
||||
# fmt: on
|
||||
|
||||
class PreprocessedControlInvocation(BaseInvocation, PILInvocationConfig):
|
||||
"""Base class for invocations that preprocess images for ControlNet"""
|
||||
|
||||
<<<<<<< HEAD
|
||||
class ControlNetInvocation(BaseInvocation):
|
||||
"""Collects ControlNet info to pass to other nodes"""
|
||||
# fmt: off
|
||||
|
Loading…
Reference in New Issue
Block a user