isort wip 2

This commit is contained in:
Martin Kristiansen
2023-08-18 11:13:28 -04:00
committed by Kent Keirsey
parent 5615c31799
commit caea6d11c6
35 changed files with 168 additions and 180 deletions

View File

@ -2,6 +2,7 @@
# Copyright (c) 2022 Lincoln D. Stein (https://github.com/lstein)
import warnings
from invokeai.frontend.install.invokeai_configure import invokeai_configure as configure
if __name__ == "__main__":

View File

@ -2,6 +2,7 @@
"""This script reads the "Invoke" Stable Diffusion prompt embedded in files generated by invoke.py"""
import sys
from PIL import Image
if len(sys.argv) < 2:

View File

@ -2,8 +2,8 @@
# Copyright (c) 2022 Kyle Schouviller (https://github.com/kyle0654)
import os
import logging
import os
logging.getLogger("xformers").addFilter(lambda record: "A matching Triton is not available" not in record.getMessage())

View File

@ -2,8 +2,8 @@
# Copyright (c) 2022 Kyle Schouviller (https://github.com/kyle0654)
import os
import logging
import os
logging.getLogger("xformers").addFilter(lambda record: "A matching Triton is not available" not in record.getMessage())

View File

@ -5,9 +5,10 @@ This script is used at release time to generate a markdown table describing the
starter models. This text is then manually copied into 050_INSTALL_MODELS.md.
"""
from omegaconf import OmegaConf
from pathlib import Path
from omegaconf import OmegaConf
def main():
initial_models_file = Path(__file__).parent / "../invokeai/configs/INITIAL_MODELS.yaml"

View File

@ -2,6 +2,7 @@
import argparse
from pathlib import Path
from invokeai.backend.model_management.model_probe import ModelProbe
parser = argparse.ArgumentParser(description="Probe model type")

View File

@ -4,11 +4,11 @@
Scan the models directory and print out a new models.yaml
"""
import argparse
import os
import sys
import argparse
from pathlib import Path
from omegaconf import OmegaConf

View File

@ -1,7 +1,8 @@
#!/usr/bin/env python
import sys
import json
import sys
from invokeai.backend.image_util import retrieve_metadata
if len(sys.argv) < 2: