ONNX Model/runtime first implementation

This commit is contained in:
Sergey Borisov
2023-06-21 02:12:21 +03:00
parent 92c86fd0b8
commit 4d337f6abc
7 changed files with 935 additions and 16 deletions

View File

@ -55,8 +55,8 @@ class LatentsOutput(BaseInvocationOutput):
def build_latents_output(latents_name: str, latents: torch.Tensor):
return LatentsOutput(
latents=LatentsField(latents_name=latents_name),
width=latents.size()[3] * 8,
height=latents.size()[2] * 8,
width=latents.shape[3] * 8,
height=latents.shape[2] * 8,
)
class NoiseOutput(BaseInvocationOutput):