非同期化・unused削除

This commit is contained in:
2026-02-17 00:20:02 +09:00
parent 914667edbf
commit 920695696b
7 changed files with 186 additions and 124 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ class AsyncMaskGenerator:
client = get_client()
# Start task on server
print(f"[FaceMask] Requesting generation on server...")
print("[FaceMask] Requesting generation on server...")
task_id = client.generate_mask(
video_path=video_path,
output_dir=output_dir,
-5
View File
@@ -5,9 +5,6 @@ Creates and manages compositing node trees that apply blur
only to masked regions of a video strip.
"""
from typing import Optional, Tuple
def create_mask_blur_node_tree(
name: str = "FaceMaskBlur",
blur_size: int = 50,
@@ -125,8 +122,6 @@ def setup_strip_compositor_modifier(
Returns:
The created modifier
"""
import bpy
# Add compositor modifier
modifier = strip.modifiers.new(
name="FaceMaskBlur",
+1 -1
View File
@@ -14,7 +14,7 @@ import threading
import time
import urllib.error
import urllib.request
from typing import Any, Dict, Optional, Tuple
from typing import Any, Dict, Optional
class InferenceClient:
-2
View File
@@ -93,8 +93,6 @@ def get_cache_info(strip_name: Optional[str] = None) -> Tuple[str, int, int]:
Returns:
Tuple of (cache_path, total_size_bytes, file_count)
"""
import bpy
if strip_name:
cache_path = get_cache_dir_for_strip(strip_name)
else: