mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
tidy(api): reverted unnecessary changes in dependencies.py
This commit is contained in:
parent
53808149fb
commit
4b2b983646
@ -70,7 +70,7 @@ class ApiDependencies:
|
|||||||
raise ValueError("Output folder is not set")
|
raise ValueError("Output folder is not set")
|
||||||
|
|
||||||
image_files = DiskImageFileStorage(f"{output_folder}/images")
|
image_files = DiskImageFileStorage(f"{output_folder}/images")
|
||||||
tensor_folder = output_folder / "tensors"
|
|
||||||
model_images_folder = config.models_path
|
model_images_folder = config.models_path
|
||||||
|
|
||||||
db = init_db(config=config, logger=logger, image_files=image_files)
|
db = init_db(config=config, logger=logger, image_files=image_files)
|
||||||
@ -87,7 +87,9 @@ class ApiDependencies:
|
|||||||
image_records = SqliteImageRecordStorage(db=db)
|
image_records = SqliteImageRecordStorage(db=db)
|
||||||
images = ImageService()
|
images = ImageService()
|
||||||
invocation_cache = MemoryInvocationCache(max_cache_size=config.node_cache_size)
|
invocation_cache = MemoryInvocationCache(max_cache_size=config.node_cache_size)
|
||||||
tensors = ObjectSerializerForwardCache(ObjectSerializerDisk[torch.Tensor](tensor_folder, ephemeral=True))
|
tensors = ObjectSerializerForwardCache(
|
||||||
|
ObjectSerializerDisk[torch.Tensor](output_folder / "tensors", ephemeral=True)
|
||||||
|
)
|
||||||
conditioning = ObjectSerializerForwardCache(
|
conditioning = ObjectSerializerForwardCache(
|
||||||
ObjectSerializerDisk[ConditioningFieldData](output_folder / "conditioning", ephemeral=True)
|
ObjectSerializerDisk[ConditioningFieldData](output_folder / "conditioning", ephemeral=True)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user