From 84317474fd6e6d0717cb28c1cc0e2569b1ea730e Mon Sep 17 00:00:00 2001 From: Kohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com> Date: Wed, 2 Apr 2025 09:31:24 +0800 Subject: [PATCH] lint --- comfy/weight_adapter/__init__.py | 2 +- comfy/weight_adapter/base.py | 2 -- comfy/weight_adapter/glora.py | 5 ----- comfy/weight_adapter/loha.py | 5 ----- comfy/weight_adapter/lokr.py | 5 ----- 5 files changed, 1 insertion(+), 18 deletions(-) diff --git a/comfy/weight_adapter/__init__.py b/comfy/weight_adapter/__init__.py index a021cfd0..e6cd805b 100644 --- a/comfy/weight_adapter/__init__.py +++ b/comfy/weight_adapter/__init__.py @@ -10,4 +10,4 @@ adapters: list[type[WeightAdapterBase]] = [ LoHaAdapter, LoKrAdapter, GLoRAAdapter, -] \ No newline at end of file +] diff --git a/comfy/weight_adapter/base.py b/comfy/weight_adapter/base.py index 2ba2850e..9a7aa9de 100644 --- a/comfy/weight_adapter/base.py +++ b/comfy/weight_adapter/base.py @@ -1,7 +1,5 @@ -from typing import Optional import torch import torch.nn as nn -import torch.nn.functional as F class WeightAdapterBase: diff --git a/comfy/weight_adapter/glora.py b/comfy/weight_adapter/glora.py index bdb9220e..89574f9f 100644 --- a/comfy/weight_adapter/glora.py +++ b/comfy/weight_adapter/glora.py @@ -1,9 +1,4 @@ -import logging import torch -import comfy.utils -import comfy.model_management -import comfy.model_base -from comfy.lora import weight_decompose, pad_tensor_to_shape from .base import WeightAdapterBase diff --git a/comfy/weight_adapter/loha.py b/comfy/weight_adapter/loha.py index b3267bc0..c0303925 100644 --- a/comfy/weight_adapter/loha.py +++ b/comfy/weight_adapter/loha.py @@ -1,9 +1,4 @@ -import logging import torch -import comfy.utils -import comfy.model_management -import comfy.model_base -from comfy.lora import weight_decompose, pad_tensor_to_shape from .base import WeightAdapterBase diff --git a/comfy/weight_adapter/lokr.py b/comfy/weight_adapter/lokr.py index 206c80ae..85bad7ec 100644 --- a/comfy/weight_adapter/lokr.py +++ b/comfy/weight_adapter/lokr.py @@ -1,9 +1,4 @@ -import logging import torch -import comfy.utils -import comfy.model_management -import comfy.model_base -from comfy.lora import weight_decompose, pad_tensor_to_shape from .base import WeightAdapterBase