InvokeAI/invokeai/app/services/names/names_default.py

13 lines
379 B
Python

from invokeai.app.services.names.names_base import NameServiceBase
from invokeai.app.util.misc import uuid_string
class SimpleNameService(NameServiceBase):
"""Creates image names from UUIDs."""
# TODO: Add customizable naming schemes
def create_image_name(self) -> str:
uuid_str = uuid_string()
filename = f"{uuid_str}.png"
return filename