From f1dd76c20b9dd853aa36f95e066c235a4c33f589 Mon Sep 17 00:00:00 2001 From: blessedcoolant <54517381+blessedcoolant@users.noreply.github.com> Date: Sun, 5 Feb 2023 22:55:10 +1300 Subject: [PATCH] Remove Deprecation Warning from Diffusers Pipeline --- ldm/invoke/generator/diffusers_pipeline.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/ldm/invoke/generator/diffusers_pipeline.py b/ldm/invoke/generator/diffusers_pipeline.py index a63159b118..f8efe03762 100644 --- a/ldm/invoke/generator/diffusers_pipeline.py +++ b/ldm/invoke/generator/diffusers_pipeline.py @@ -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()