Update bnk_tiled_samplers.py

omfy.sampler's 'convert cond' has been removed so line 127 changes
This commit is contained in:
VALADI K JAGANATHAN
2024-05-27 09:44:03 +05:30
committed by GitHub
parent 97f284b5b8
commit ab8a2814f6

View File

@@ -120,8 +120,11 @@ def sample_common(model, add_noise, noise_seed, tile_width, tile_height, tiling_
tile_height = min(shape[2] * 8, tile_height)
real_model = None
positive_copy = comfy.sample.convert_cond(positive)
negative_copy = comfy.sample.convert_cond(negative)
# positive_copy = comfy.sample.convert_cond(positive)
# negative_copy = comfy.sample.convert_cond(negative)
#change made due to changes in omfy.sampler's 'convert cond' has been removed.. check if any error persists.
positive_copy = positive[:]
negative_copy = negative[:]
modelPatches, inference_memory = comfy.sample.get_additional_models(positive_copy, negative_copy, model.model_dtype())
comfy.model_management.load_models_gpu([model] + modelPatches, model.memory_required(noise.shape) + inference_memory)
real_model = model.model