@@ -83,47 +83,47 @@ class DenoiseContext:
83
83
unet : Optional [UNet2DConditionModel ] = None
84
84
85
85
# Current state of latent-space image in denoising process.
86
- # None until `pre_denoise_loop ` callback.
86
+ # None until `PRE_DENOISE_LOOP ` callback.
87
87
# Shape: [batch, channels, latent_height, latent_width]
88
88
latents : Optional [torch .Tensor ] = None
89
89
90
90
# Current denoising step index.
91
- # None until `pre_step ` callback.
91
+ # None until `PRE_STEP ` callback.
92
92
step_index : Optional [int ] = None
93
93
94
94
# Current denoising step timestep.
95
- # None until `pre_step ` callback.
95
+ # None until `PRE_STEP ` callback.
96
96
timestep : Optional [torch .Tensor ] = None
97
97
98
98
# Arguments which will be passed to UNet model.
99
- # Available in `pre_unet `/`post_unet ` callbacks, otherwise will be None.
99
+ # Available in `PRE_UNET `/`POST_UNET ` callbacks, otherwise will be None.
100
100
unet_kwargs : Optional [UNetKwargs ] = None
101
101
102
102
# SchedulerOutput class returned from step function(normally, generated by scheduler).
103
- # Supposed to be used only in `post_step ` callback, otherwise can be None.
103
+ # Supposed to be used only in `POST_STEP ` callback, otherwise can be None.
104
104
step_output : Optional [SchedulerOutput ] = None
105
105
106
106
# Scaled version of `latents`, which will be passed to unet_kwargs initialization.
107
- # Available in events inside step(between `pre_step ` and `post_stop `).
107
+ # Available in events inside step(between `PRE_STEP ` and `POST_STEP `).
108
108
# Shape: [batch, channels, latent_height, latent_width]
109
109
latent_model_input : Optional [torch .Tensor ] = None
110
110
111
111
# [TMP] Defines on which conditionings current unet call will be runned.
112
- # Available in `pre_unet `/`post_unet ` callbacks, otherwise will be None.
112
+ # Available in `PRE_UNET `/`POST_UNET ` callbacks, otherwise will be None.
113
113
conditioning_mode : Optional [ConditioningMode ] = None
114
114
115
115
# [TMP] Noise predictions from negative conditioning.
116
- # Available in `apply_cfg` and `post_apply_cfg` callbacks , otherwise will be None.
116
+ # Available in `POST_COMBINE_NOISE_PREDS` callback , otherwise will be None.
117
117
# Shape: [batch, channels, latent_height, latent_width]
118
118
negative_noise_pred : Optional [torch .Tensor ] = None
119
119
120
120
# [TMP] Noise predictions from positive conditioning.
121
- # Available in `apply_cfg` and `post_apply_cfg` callbacks , otherwise will be None.
121
+ # Available in `POST_COMBINE_NOISE_PREDS` callback , otherwise will be None.
122
122
# Shape: [batch, channels, latent_height, latent_width]
123
123
positive_noise_pred : Optional [torch .Tensor ] = None
124
124
125
125
# Combined noise prediction from passed conditionings.
126
- # Available in `apply_cfg` and `post_apply_cfg` callbacks , otherwise will be None.
126
+ # Available in `POST_COMBINE_NOISE_PREDS` callback , otherwise will be None.
127
127
# Shape: [batch, channels, latent_height, latent_width]
128
128
noise_pred : Optional [torch .Tensor ] = None
129
129
0 commit comments