mirror of
https://github.com/finegrain-ai/refiners.git
synced 2024-11-23 22:58:45 +00:00
ruff: reorder test imports
This commit is contained in:
parent
5131212bbb
commit
91c0fd24d8
|
@ -7,6 +7,7 @@ from warnings import warn
|
|||
import pytest
|
||||
import torch
|
||||
from PIL import Image
|
||||
from tests.utils import ensure_similar_images
|
||||
|
||||
from refiners.fluxion.layers.attentions import ScaledDotProductAttention
|
||||
from refiners.fluxion.utils import image_to_tensor, load_from_safetensors, load_tensors, manual_seed, no_grad
|
||||
|
@ -31,7 +32,6 @@ from refiners.foundationals.latent_diffusion.solvers import DDIM, Euler, NoiseSc
|
|||
from refiners.foundationals.latent_diffusion.stable_diffusion_1.multi_diffusion import SD1MultiDiffusion
|
||||
from refiners.foundationals.latent_diffusion.stable_diffusion_xl.model import StableDiffusion_XL
|
||||
from refiners.foundationals.latent_diffusion.style_aligned import StyleAlignedAdapter
|
||||
from tests.utils import ensure_similar_images
|
||||
|
||||
|
||||
def _img_open(path: Path) -> Image.Image:
|
||||
|
|
|
@ -5,12 +5,12 @@ from warnings import warn
|
|||
import pytest
|
||||
import torch
|
||||
from PIL import Image
|
||||
from tests.utils import ensure_similar_images
|
||||
|
||||
from refiners.fluxion.utils import load_from_safetensors, manual_seed, no_grad
|
||||
from refiners.foundationals.latent_diffusion import SDXLIPAdapter
|
||||
from refiners.foundationals.latent_diffusion.lora import SDLoraManager
|
||||
from refiners.foundationals.latent_diffusion.stable_diffusion_xl.model import StableDiffusion_XL
|
||||
from tests.utils import ensure_similar_images
|
||||
|
||||
|
||||
def _img_open(path: Path) -> Image.Image:
|
||||
|
|
|
@ -5,6 +5,7 @@ from warnings import warn
|
|||
import pytest
|
||||
import torch
|
||||
from PIL import Image
|
||||
from tests.utils import ensure_similar_images
|
||||
|
||||
from refiners.fluxion.utils import load_from_safetensors, manual_seed, no_grad
|
||||
from refiners.foundationals.latent_diffusion.lora import SDLoraManager
|
||||
|
@ -12,7 +13,6 @@ from refiners.foundationals.latent_diffusion.solvers import LCMSolver
|
|||
from refiners.foundationals.latent_diffusion.stable_diffusion_xl.lcm import SDXLLcmAdapter
|
||||
from refiners.foundationals.latent_diffusion.stable_diffusion_xl.lcm_lora import add_lcm_lora
|
||||
from refiners.foundationals.latent_diffusion.stable_diffusion_xl.model import StableDiffusion_XL
|
||||
from tests.utils import ensure_similar_images
|
||||
|
||||
|
||||
def _img_open(path: Path) -> Image.Image:
|
||||
|
|
|
@ -5,13 +5,13 @@ from warnings import warn
|
|||
import pytest
|
||||
import torch
|
||||
from PIL import Image
|
||||
from tests.utils import ensure_similar_images
|
||||
|
||||
from refiners.fluxion.utils import load_from_safetensors, manual_seed, no_grad
|
||||
from refiners.foundationals.latent_diffusion.lora import SDLoraManager
|
||||
from refiners.foundationals.latent_diffusion.solvers import Euler, ModelPredictionType, SolverParams, TimestepSpacing
|
||||
from refiners.foundationals.latent_diffusion.stable_diffusion_xl.lcm_lora import add_lcm_lora
|
||||
from refiners.foundationals.latent_diffusion.stable_diffusion_xl.model import StableDiffusion_XL
|
||||
from tests.utils import ensure_similar_images
|
||||
|
||||
|
||||
def _img_open(path: Path) -> Image.Image:
|
||||
|
|
|
@ -4,10 +4,10 @@ from warnings import warn
|
|||
import pytest
|
||||
import torch
|
||||
from PIL import Image
|
||||
from tests.utils import ensure_similar_images
|
||||
|
||||
from refiners.fluxion.utils import image_to_tensor, no_grad, tensor_to_image
|
||||
from refiners.foundationals.latent_diffusion.preprocessors.informative_drawings import InformativeDrawings
|
||||
from tests.utils import ensure_similar_images
|
||||
|
||||
|
||||
def _img_open(path: Path) -> Image.Image:
|
||||
|
|
Loading…
Reference in a new issue