2023-03-03 06:02:00 +00:00
|
|
|
"""
|
2023-03-03 05:02:15 +00:00
|
|
|
Initialization file for invokeai.backend.util
|
2023-03-03 06:02:00 +00:00
|
|
|
"""
|
2023-09-11 13:57:41 +00:00
|
|
|
from .attention import auto_detect_slice_size # noqa: F401
|
2023-08-17 22:45:25 +00:00
|
|
|
from .devices import ( # noqa: F401
|
2023-03-03 06:02:00 +00:00
|
|
|
CPU_DEVICE,
|
|
|
|
CUDA_DEVICE,
|
|
|
|
MPS_DEVICE,
|
|
|
|
choose_precision,
|
|
|
|
choose_torch_device,
|
|
|
|
normalize_device,
|
|
|
|
torch_dtype,
|
|
|
|
)
|
2023-11-25 00:37:46 +00:00
|
|
|
from .logging import InvokeAILogger
|
2024-02-04 03:55:09 +00:00
|
|
|
from .util import ( # TO DO: Clean this up; remove the unused symbols
|
|
|
|
GIG,
|
|
|
|
Chdir,
|
|
|
|
ask_user, # noqa
|
|
|
|
directory_size,
|
|
|
|
download_with_resume,
|
|
|
|
instantiate_from_config, # noqa
|
|
|
|
url_attachment_name, # noqa
|
|
|
|
)
|
2023-11-25 00:37:46 +00:00
|
|
|
|
2024-02-04 03:55:09 +00:00
|
|
|
__all__ = ["GIG", "directory_size","Chdir", "download_with_resume", "InvokeAILogger", "choose_precision", "choose_torch_device"]
|