Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
fix: remove duplicate image record methods
Josh Corbettb5f0e82040bb
diff --git a/invokeai/app/services/image_records/image_records_base.py b/invokeai/app/services/image_records/image_records_base.pyindex 31c69c489f..e4fbffa82e 100644--- a/invokeai/app/services/image_records/image_records_base.py+++ b/invokeai/app/services/image_records/image_records_base.py@@ -41,11 +41,6 @@ class ImageRecordStorageBase(ABC):"""Gets an image's metadata'."""pass- @abstractmethod- def exists(self, image_name: str) -> bool:- """Returns whether an image record exists."""- pass-@abstractmethoddef update(self,diff --git a/invokeai/app/services/image_records/image_records_sqlite.py b/invokeai/app/services/image_records/image_records_sqlite.pyindex b765e2b749..291590a443 100644--- a/invokeai/app/services/image_records/image_records_sqlite.py+++ b/invokeai/app/services/image_records/image_records_sqlite.py@@ -243,17 +243,6 @@ class SqliteImageRecordStorage(ImageRecordStorageBase):return Nonereturn cast(Optional[str], dict(result).get("user_id"))- def exists(self, image_name: str) -> bool:- with self._db.transaction() as cursor:- cursor.execute(- """--sql- SELECT 1 FROM images- WHERE image_name = ?;- """,- (image_name,),- )- return cursor.fetchone() is not None-def get_metadata(self, image_name: str) -> Optional[MetadataField]:# See get(): a storage error must not masquerade as a missing row.with self._db.transaction() as cursor: