mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-04 05:07:21 +08:00
linting
This commit is contained in:
parent
dc74839d2d
commit
c8bd95a393
@ -11,3 +11,9 @@ adapters: list[type[WeightAdapterBase]] = [
|
||||
LoKrAdapter,
|
||||
GLoRAAdapter,
|
||||
]
|
||||
|
||||
__all__ = [
|
||||
"WeightAdapterBase",
|
||||
"WeightAdapterTrainBase",
|
||||
"adapters"
|
||||
] + [a.__name__ for a in adapters]
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
import datetime
|
||||
import json
|
||||
import logging
|
||||
import math
|
||||
import os
|
||||
|
||||
import numpy as np
|
||||
@ -17,7 +16,7 @@ import folder_paths
|
||||
import node_helpers
|
||||
from comfy.cli_args import args
|
||||
from comfy.comfy_types.node_typing import IO
|
||||
from comfy.weight_adapter import WeightAdapterBase, WeightAdapterTrainBase, adapters
|
||||
from comfy.weight_adapter import adapters
|
||||
|
||||
|
||||
class TrainSampler(comfy.samplers.Sampler):
|
||||
@ -375,7 +374,7 @@ class TrainLoraNode:
|
||||
)
|
||||
if existing_adapter is not None:
|
||||
break
|
||||
|
||||
|
||||
if existing_adapter is not None:
|
||||
train_adapter = existing_adapter.to_train()
|
||||
for name, parameter in train_adapter.named_parameters():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user