Fix for txt2img2img.py (#2856)

Fix error when using txt2img 
ModuleNotFoundError: No module named 'invokeai.backend.models'
and
ModuleNotFoundError: No module named
'invokeai.backend.generator.diffusers_pipeline'
This commit is contained in:
blessedcoolant 2023-03-04 15:24:39 +13:00 committed by GitHub
commit 86e2cb0428
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,14 +8,11 @@ from typing import Callable, Optional
import torch
from diffusers.utils.logging import get_verbosity, set_verbosity, set_verbosity_error
from ..models import PostprocessingSettings
from ..stable_diffusion import PostprocessingSettings
from .base import Generator
from .diffusers_pipeline import (
ConditioningData,
StableDiffusionGeneratorPipeline,
trim_to_multiple_of,
)
from ..stable_diffusion.diffusers_pipeline import StableDiffusionGeneratorPipeline
from ..stable_diffusion.diffusers_pipeline import ConditioningData
from ..stable_diffusion.diffusers_pipeline import trim_to_multiple_of
class Txt2Img2Img(Generator):
def __init__(self, model, precision):