mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
@@ -126,7 +126,7 @@ class APIProcess:
|
||||
boxes = []
|
||||
labels = []
|
||||
with self.queue_lock:
|
||||
items = shared.detailer.predict(req.model, image)
|
||||
items = shared.detailer.predict(req.model, req.model, image)
|
||||
for item in items:
|
||||
images.append(encode_pil_to_base64(item.item))
|
||||
scores.append(item.score)
|
||||
|
||||
@@ -50,7 +50,7 @@ def stat(path: str):
|
||||
latest_mtime = entry_stat.st_mtime
|
||||
if entry.is_symlink():
|
||||
continue
|
||||
elif entry.is_file():
|
||||
if entry.is_file():
|
||||
total_size += entry_stat.st_size
|
||||
elif entry.is_dir():
|
||||
sub_size, sub_mtime = stat(entry.path) # Recursively scan subfolders
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ requests==2.34.2
|
||||
tqdm==4.68.3
|
||||
accelerate==1.14.0
|
||||
einops==0.8.2
|
||||
huggingface_hub==1.21.0
|
||||
huggingface_hub==1.22.0
|
||||
hf_xet==1.5.1
|
||||
numpy==2.1.2
|
||||
pandas==2.3.1
|
||||
|
||||
Reference in New Issue
Block a user