Nodes/ComfyUI-BerniniR Wrapper/Bernini-R KSampler
ComfyUI Node

Bernini-R KSampler

Enhanced KSampler with temporal context window tiling for long videos. Connect BerniniR_ContextWindow to enable windowed sampling; leave disconnected for standard single-pass sampling.

By xiaolibai-sys·Created about a month ago·Updated 28 days ago· 8
Bernini-R KSampler
  • model_handle
  • positive
  • negative
  • latent_image
  • context_options
  • guidance_config
  • block_swap_args
  • teacache_args
  • guidance_schedule
  • latent
seed0
steps20
cfg6.0
sampler_name
scheduler
denoise1.00
flow_shift3.0
add_noisetrue
CategoryBernini-R/Sampling

Inputs (17)

NameTypeDefaultDescription
model_handleBERNINI_MODEL_HANDLEBernini-R model handle from BerniniR_ModelLoader
seedINT00–18446744073709550000Random seed for reproducible generation
stepsINT201–10000Number of denoising steps. 20-40 for flow matching
cfgFLOAT6.00–100Classifier-free guidance scale. 4-7 typical for video
sampler_nameCOMBOSampling algorithm. 'uni_pc' or 'euler' work well with flow matching
schedulerCOMBOSigma schedule. 'simple' or 'normal' recommended
positiveCONDITIONINGPositive prompt conditioning
negativeCONDITIONINGNegative prompt conditioning
latent_imageLATENTInput latent (noise or encoded image for img2vid)
denoiseFLOAT1.000–1Denoising strength. 1.0 = full generation, <1.0 = img2vid
flow_shiftFLOAT3.00.1–100Sigma schedule shift. Bernini-R trained with 3.0. Higher = more low-noise steps, sharper details
context_optionsoptBERNINI_CTXContext window config from BerniniR_ContextWindow. Connect to enable temporal window tiling for long videos.
guidance_configoptBERNINI_GUIDANCE_CONFIGGuidance strategy + params from BerniniR_GuidanceConfig. Leave disconnected for plain CFG.
block_swap_argsoptBERNINI_BLOCKSWAPBlock swap config from BerniniR_BlockSwapArgs. Leave disconnected to disable.
teacache_argsoptBERNINI_TEACACHETeaCache config from BerniniR_TeaCacheArgs. Leave disconnected to disable TeaCache.
add_noiseoptBOOLEANtrueAdd initial noise. Disable for img2vid when denoise < 1.0
guidance_scheduleoptBERNINI_GUIDANCEDynamic per-step guidance scale from BerniniR_GuidanceStrengthSchedule. Overrides static cfg.

Outputs (1)

NameTypeDescription
latentLATENT