From 609b8513595b9699ea04bcea093dee266d7834ce Mon Sep 17 00:00:00 2001 From: mcDandy Date: Mon, 20 Apr 2026 15:33:49 +0200 Subject: [PATCH] small human change --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index edcb147..03450a0 100644 --- a/README.md +++ b/README.md @@ -243,8 +243,8 @@ You can also get the node from comfy manager under the name of More math. - `motion_mask(flow)`: motion/occlusion mask from flow. - `flow_to_image(flow)`: visualize flow as RGB. - `flow_apply(image, flow)`: warp image by flow. -- `flow_mag(flow)` / `flow_magnitude`: flow vector magnitude. -- `flow_ang(flow)` / `flow_angle`: flow vector angle in radians (`atan2(dy, dx)`). +- `flow_mag(flow)` / `flow_magnitude`: flow vector magnitude (or anything else, uses first 2 positions of last dimension). +- `flow_ang(flow)` / `flow_angle`: flow vector angle in radians (`atan2(dy, dx)`). (or anything else, uses first 2 positions of last dimension) --- @@ -259,6 +259,8 @@ You can also get the node from comfy manager under the name of More math. #### 6.1 Random Distributions - All random generators are seeded and deterministic for a given seed. +- All use the current node shape by default (based on shape of input to the node), but an optional `shape` argument can be provided to specify a different output shape. +- all use `rand(seed, [shape])` / `random_` naming convention. `noise`/`randn`/`random_normal` is the same generator as in `Random Noise` node. - If `shape` is omitted, the current node shape is used. - `noise` / `randn` / `random_normal`: normal distribution. - `rand` / `randu` / `random_uniform`: uniform distribution.