mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-27 17:22:53 +03:00
Replace flake8 with ruff and update black (#2279)
* before running make style * remove left overs from flake8 * finish * make fix-copies * final fix * more fixes
This commit is contained in:
committed by
GitHub
parent
f5ccffecf7
commit
a7ca03aa85
@@ -18,6 +18,12 @@ import argparse
|
||||
from argparse import Namespace
|
||||
|
||||
import torch
|
||||
from transformers import (
|
||||
CLIPFeatureExtractor,
|
||||
CLIPTextModelWithProjection,
|
||||
CLIPTokenizer,
|
||||
CLIPVisionModelWithProjection,
|
||||
)
|
||||
|
||||
from diffusers import (
|
||||
AutoencoderKL,
|
||||
@@ -31,12 +37,6 @@ from diffusers import (
|
||||
VersatileDiffusionPipeline,
|
||||
)
|
||||
from diffusers.pipelines.versatile_diffusion.modeling_text_unet import UNetFlatConditionModel
|
||||
from transformers import (
|
||||
CLIPFeatureExtractor,
|
||||
CLIPTextModelWithProjection,
|
||||
CLIPTokenizer,
|
||||
CLIPVisionModelWithProjection,
|
||||
)
|
||||
|
||||
|
||||
SCHEDULER_CONFIG = Namespace(
|
||||
|
||||
Reference in New Issue
Block a user