lint fixes

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-04-08 16:31:51 -04:00
parent 6ab59230ba
commit 984aa8ec55
5 changed files with 5 additions and 6 deletions
+2
View File
@@ -30,6 +30,8 @@ N/A
- fc: autodetect distilled based on model
- processing: remove duplicate mask params
- model loader: implement model in-memory caching
- custom: load receipe
- custom: save receipe
- hypertile: vae breaks when using non-standard sizes
- model load: force-reloading entire model as loading transformers only leads to massive memory usage
- lora: add other quantization types
+1 -1
View File
@@ -323,7 +323,7 @@ class PhotoMakerIDEncoder_CLIPInsightfaceExtendtoken(CLIPVisionModelWithProjecti
self.num_tokens,
)
def forward(self, id_pixel_values, prompt_embeds, class_tokens_mask, id_embeds): # pylint: disable=arguments-differ
def forward(self, id_pixel_values, prompt_embeds, class_tokens_mask, id_embeds): # pylint: disable=arguments-differ, arguments-renamed
b, num_inputs, c, h, w = id_pixel_values.shape
id_pixel_values = id_pixel_values.view(b * num_inputs, c, h, w)
+1 -1
View File
@@ -2,7 +2,7 @@ from typing import Union
import os
import time
import concurrent
from modules import shared, errors, devices, sd_models, sd_models_compile, files_cache
from modules import shared, errors, sd_models, sd_models_compile, files_cache
from modules.lora import network, lora_overrides, lora_convert
from modules.lora import lora_common as l
-2
View File
@@ -288,7 +288,6 @@ class DiffusersTextualInversionManager(BaseTextualInversionManager):
def get_prompt_schedule(prompt, steps):
t0 = time.time()
temp = []
schedule = prompt_parser.get_learned_conditioning_prompt_schedules([prompt], steps)[0]
if all(x == schedule[0] for x in schedule):
@@ -297,7 +296,6 @@ def get_prompt_schedule(prompt, steps):
for s in range(steps):
if len(temp) < s + 1 <= chunk[0]:
temp.append(chunk[1])
# debug(f'Prompt: schedule={temp} time={(time.time() - t0):.3f}')
return temp, len(schedule) > 1
+1 -2
View File
@@ -248,8 +248,7 @@ def create_ui(status):
c = [x for x in components if x.id == df[0]]
if len(c) != 1:
continue
else:
c = c[0]
c = c[0]
c.local = df[5].strip()
c.remote = df[6].strip()
c.dtype = df[7]