mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ip_adapter): add None to types
This commit is contained in:
parent
bd15874cf6
commit
95ecb1a0c1
@ -20,7 +20,7 @@ def is_torch2_available():
|
|||||||
@torch.no_grad()
|
@torch.no_grad()
|
||||||
def generate(
|
def generate(
|
||||||
self,
|
self,
|
||||||
prompt: Union[str, List[str]] = None,
|
prompt: Union[str, List[str], None] = None,
|
||||||
image: Union[
|
image: Union[
|
||||||
torch.FloatTensor,
|
torch.FloatTensor,
|
||||||
PIL.Image.Image,
|
PIL.Image.Image,
|
||||||
@ -28,6 +28,7 @@ def generate(
|
|||||||
List[torch.FloatTensor],
|
List[torch.FloatTensor],
|
||||||
List[PIL.Image.Image],
|
List[PIL.Image.Image],
|
||||||
List[np.ndarray],
|
List[np.ndarray],
|
||||||
|
None,
|
||||||
] = None,
|
] = None,
|
||||||
height: Optional[int] = None,
|
height: Optional[int] = None,
|
||||||
width: Optional[int] = None,
|
width: Optional[int] = None,
|
||||||
|
Loading…
Reference in New Issue
Block a user