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()
|
||||
def generate(
|
||||
self,
|
||||
prompt: Union[str, List[str]] = None,
|
||||
prompt: Union[str, List[str], None] = None,
|
||||
image: Union[
|
||||
torch.FloatTensor,
|
||||
PIL.Image.Image,
|
||||
@ -28,6 +28,7 @@ def generate(
|
||||
List[torch.FloatTensor],
|
||||
List[PIL.Image.Image],
|
||||
List[np.ndarray],
|
||||
None,
|
||||
] = None,
|
||||
height: Optional[int] = None,
|
||||
width: Optional[int] = None,
|
||||
|
Loading…
Reference in New Issue
Block a user