mirror of
https://github.com/vladmandic/automatic
synced 2026-09-06 21:10:45 +02:00
fix init_image
This commit is contained in:
@@ -1077,7 +1077,7 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
|
||||
if crop_region is not None:
|
||||
image = image.crop(crop_region)
|
||||
image = images.resize_image(3, image, self.width, self.height)
|
||||
self.init_images = image # assign early for diffusers
|
||||
self.init_images = [image] # assign early for diffusers
|
||||
if image_mask is not None:
|
||||
if self.inpainting_fill != 1:
|
||||
image = masking.fill(image, latent_mask)
|
||||
|
||||
@@ -99,7 +99,7 @@ def compel_encode_prompt(
|
||||
text_encoder=pipeline.text_encoder,
|
||||
returned_embeddings_type=embedding_type,
|
||||
requires_pooled=False,
|
||||
# truncate_long_prompts=False,
|
||||
truncate_long_prompts=False,
|
||||
device=shared.device
|
||||
)
|
||||
|
||||
|
||||
@@ -2,7 +2,6 @@ import copy
|
||||
import random
|
||||
import shlex
|
||||
import gradio as gr
|
||||
from PIL import Image
|
||||
import modules.scripts as scripts
|
||||
from modules import sd_samplers, errors
|
||||
from modules.processing import Processed, process_images
|
||||
|
||||
Reference in New Issue
Block a user