fix: sample_with_custom_noise - move intermediate latent to intermediate device.

This commit is contained in:
Dr.Lt.Data
2024-08-04 15:53:52 +09:00
parent 26c7419553
commit b2d12d04b4
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import configparser
import os
version_code = [6, 0]
version_code = [6, 0, 1]
version = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')
dependency_version = 22
+1 -2
View File
@@ -141,8 +141,6 @@ def sample_with_custom_noise(model, add_noise, noise_seed, cfg, positive, negati
touched_callback = preview_callback
disable_pbar = not comfy.utils.PROGRESS_BAR_ENABLED
# samples = comfy.sample.sample_custom(model, noise, cfg, sampler, sigmas, positive, negative, latent_image,
# noise_mask=noise_mask, callback=touched_callback, disable_pbar=disable_pbar, seed=noise_seed)
if negative != 'NegativePlaceholder':
guider = comfy.samplers.CFGGuider(model)
@@ -154,6 +152,7 @@ def sample_with_custom_noise(model, add_noise, noise_seed, cfg, positive, negati
guider.set_conds(positive)
samples = guider.sample(noise, latent_image, sampler, sigmas, denoise_mask=noise_mask, callback=touched_callback, disable_pbar=disable_pbar, seed=noise_seed)
samples = samples.to(comfy.model_management.intermediate_device())
out["samples"] = samples
if "x0" in x0_output:
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "comfyui-impact-pack"
description = "This extension offers various detector nodes and detailer nodes that allow you to configure a workflow that automatically enhances facial details. And provide iterative upscaler."
version = "6.0"
version = "6.0.1"
license = { file = "LICENSE.txt" }
dependencies = ["segment-anything", "scikit-image", "piexif", "transformers", "opencv-python-headless", "GitPython", "scipy>=1.11.4"]