mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-24 05:10:18 +08:00
Fix tensor types
This commit is contained in:
parent
a4fb34a0b8
commit
e8eab4dbc6
@ -1,8 +1,19 @@
|
|||||||
|
from typing import TypedDict
|
||||||
|
|
||||||
from jaxtyping import Float
|
from jaxtyping import Float
|
||||||
from torch import Tensor
|
from torch import Tensor
|
||||||
|
from typing_extensions import NotRequired
|
||||||
|
|
||||||
ImageBatch = Float[Tensor, "batch height width channels"]
|
ImageBatch = Float[Tensor, "batch height width channels"]
|
||||||
|
LatentBatch = Float[Tensor, "batch channels height width"]
|
||||||
|
SD1LatentBatch = Float[Tensor, "batch 8 height width"]
|
||||||
|
SD3LatentBatch = Float[Tensor, "batch 16 height width"]
|
||||||
MaskBatch = Float[Tensor, "batch height width"]
|
MaskBatch = Float[Tensor, "batch height width"]
|
||||||
RGBImageBatch = Float[Tensor, "batch height width 3"]
|
RGBImageBatch = Float[Tensor, "batch height width 3"]
|
||||||
RGBAImageBatch = Float[Tensor, "batch height width 4"]
|
RGBAImageBatch = Float[Tensor, "batch height width 4"]
|
||||||
RGBImage = Float[Tensor, "height width 3"]
|
RGBImage = Float[Tensor, "height width 3"]
|
||||||
|
|
||||||
|
|
||||||
|
class Latent(TypedDict):
|
||||||
|
samples: LatentBatch
|
||||||
|
noise_mask: NotRequired[LatentBatch]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user