ComfyUI Node

DDX

A ComfyUI node in FunctionAsTexture with 2 inputs and 1 output.

By CoiiChan·Created about a year ago·Updated about a year ago· 2
DDX
  • imga
  • IMAGE
formulax_shift = 1 y_shift = 0 height, width = imga.shape[1:3] new_x = np.clip(np.arange(width) + x_shift, 0, width - 1) new_y = np.clip(np.arange(height) + y_shift, 0, height - 1) X, Y = np.meshgrid(new_x, new_y) result = (imga[:, Y, X, :]-imga)/16 *width
CategoryFunctionAsTexture

Inputs (2)

NameTypeDefaultDescription
formulaSTRINGx_shift = 1 y_shift = 0 height, width = imga.shape[1:3] new_x = np.clip(np.arange(width) + x_shift, 0, width - 1) new_y = np.clip(np.arange(height) + y_shift, 0, height - 1) X, Y = np.meshgrid(new_x, new_y) result = (imga[:, Y, X, :]-imga)/16 *width
imgaoptIMAGEOptional ,Reference size ,Default =(1,512,512,3)

Outputs (1)

NameTypeDescription
IMAGEIMAGE