You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,14 +15,15 @@ You can also get the node from comfy manager under the name of More math.
15
15
## Features
16
16
17
17
- functions and variables in math expressions
18
-
- Nodes for CONDITIONING, LATENT, IMAGE, NOISE, FLOAT, VIDEO and AUDIO
18
+
- conversions between int and float
19
+
- Nodes for FLOAT, CONDITIONING, LATENT, IMAGE, NOISE, AUDIO, VIDEO, MODEL, CLIP and VAE
19
20
20
21
## Operators
21
22
22
23
- Math: `+`, `-`, `*`, `/`, `%`, `^`, `||`
23
24
- Boolean: `<`, `<=`, `>`, `>=`, `==`, `!=`
24
25
(`false = 0.0`, `true = 1.0`)
25
-
- Lists: `[v1, v2, ...]` (Vector math supported, only usefull in `conv`)
26
+
- Lists: `[v1, v2, ...]` (Vector math supported, only usefull in `conv` and `permute`)
26
27
27
28
## Functions
28
29
@@ -80,11 +81,12 @@ You can also get the node from comfy manager under the name of More math.
80
81
81
82
-`map(tensor, c1, ...)`: Remaps `tensor` using source coordinates.
82
83
- Up to 3 coordinate mapping functions can be provided which map to the last (up to 3) dimensions of the tensor.
83
-
- If less than 3 functions are provided and shape of tensor > 3, the remaining dimensions are assumed to be identity functions.
84
+
- If less than 3 functions are provided and shape of tensor >= 3, the remaining dimensions are assumed to be identity functions.
85
+
- That means map(tensor4,func) where tensor4 has shape [a,b,c,d] will map 2nd dimension and map(tensor4,func,func) will map 2nd and 3rd dimension. map(tensor4,func,func,func) will map last 3 dimensions.
84
86
-`conv(tensor, kw, [kh], [kd], k_expr)`: Applies a convolution to `tensor`.
85
87
-`k_expr` can be a math expression (using `kX`, `kY`, `kZ`) or a list literal.
86
88
87
-
-`permute(tensor, [dims])`: Rearranges the dimensions of the tensor. (e.g., `permute(a, [2, 3, 0, 1])`)
89
+
-`permute(tensor, dims)`: Rearranges the dimensions of the tensor. (e.g., `permute(a, [2, 3, 0, 1])`)
0 commit comments