Remove Deprecation Warning from Diffusers Pipeline

This commit is contained in:
blessedcoolant 2023-02-05 22:55:10 +13:00
parent 3016eeb6fb
commit f1dd76c20b

View File

@ -4,7 +4,6 @@ import dataclasses
import inspect
import secrets
import sys
import warnings
from dataclasses import dataclass, field
from typing import List, Optional, Union, Callable, Type, TypeVar, Generic, Any
@ -641,7 +640,6 @@ class StableDiffusionGeneratorPipeline(StableDiffusionPipeline):
@property
def cond_stage_model(self):
warnings.warn("legacy compatibility layer", DeprecationWarning)
return self.prompt_fragments_to_embeddings_converter
@torch.inference_mode()