guidance_scale * (noise_pred_text - noise_pred_uncond) # compute the previous noisy sample x_t -> x_t-1 latents = scheduler.step(noise_pred.cpu(), t, latents, latents = self.scheduler.step(noise_pred.cpu(), t, latents, **extra_step_kwargs, return_dict=False)[0] if call...
cond = Attr(self._key_field).not_exists() \ | Attr(self._expiration_time_field).lte(int(now.timestamp())) kwargs = dict(ConditionExpression=cond) try: self._table.put_item( Item={ self._key_field: key, self._expiration_time_field: int(expiration_time.timestamp()), CREATED_AT_FI...
revision_strength_4, revision_images_filenames) if revision_mode else (revision_mode)), 8 changes: 8 additions & 0 deletions 8 modules/core.py Original file line numberDiff line numberDiff line change @@ -18,6 +18,7 @@ from comfy.sample import prepare_mask, broadcast_cond, get_additi...
Thecallfunction takes an optional parametercall_with_device, that will ensure that adevice=devkwarg is passed to the host callback function. This is useful in presence of execution on multiple devices, e.g., inside pmap. In many other cases it is not interesting. Alternative designs would be...
latents = wrap_function_to_inject_xformers_bug_info(orig_comfy_sample)(model, noise, *args, **kwargs) return latents finally: @@ -355,6 +364,8 @@ def evolved_sampling_function(model, x, timestep, uncond, cond, cond_scale, mode ADGS.motion_models.prepare_current_keyframe(t=...
def training_losses(self, model, *args, **kwargs): # pylint: disable=signature-differs return super().training_losses(self._wrap_model(model), *args, **kwargs) def condition_mean(self, cond_fn, *args, **kwargs): @@ -105,9 +97,7 @@ def condition_score(self, cond_fn, *args,...
revision_strength_4, revision_images_filenames) if revision_mode else (revision_mode)), 8 changes: 8 additions & 0 deletions 8 modules/core.py Original file line numberDiff line numberDiff line change @@ -18,6 +18,7 @@ from comfy.sample import prepare_mask, broadcast_cond, get_additi...