Spaces:
Running on Zero
Running on Zero
Adjust defaults
Browse files- inversion/engine.py +11 -11
inversion/engine.py
CHANGED
|
@@ -25,17 +25,17 @@ from .vlm import VQA_TEMPLATE
|
|
| 25 |
|
| 26 |
@dataclass
|
| 27 |
class EngineConfig:
|
| 28 |
-
max_iters: int = 5
|
| 29 |
-
vqa_gate: float = 0.
|
| 30 |
-
dino_gate: float = 0.
|
| 31 |
-
fail_threshold: float = 0.
|
| 32 |
-
parent_gate: float = 0.
|
| 33 |
-
ground: bool = True
|
| 34 |
-
grounding_threshold: float = 0.
|
| 35 |
-
w_vqa: float = 0.
|
| 36 |
-
w_dino: float = 0.
|
| 37 |
-
base_seed: int = 42
|
| 38 |
-
proxy_long_side: int = 1024
|
| 39 |
question_template: str = VQA_TEMPLATE
|
| 40 |
|
| 41 |
|
|
|
|
| 25 |
|
| 26 |
@dataclass
|
| 27 |
class EngineConfig:
|
| 28 |
+
max_iters: int = 3 # down from 5 (diminishing returns after iter 2–3)
|
| 29 |
+
vqa_gate: float = 0.82 # down from 0.90 (accounts for DSG parent-gate zeroing)
|
| 30 |
+
dino_gate: float = 0.65 # down from 0.80 (realistic ceiling for pure T2I patch cosine)
|
| 31 |
+
fail_threshold: float = 0.70 # down from 0.75 (avoids noisy rewrites on borderline facts)
|
| 32 |
+
parent_gate: float = 0.50 # keep as-is (standard DSG dependency threshold)
|
| 33 |
+
ground: bool = True # keep True (saves compute by pruning bad predicates early)
|
| 34 |
+
grounding_threshold: float = 0.65 # up from 0.50 (drops ambiguous OG facts before optimization)
|
| 35 |
+
w_vqa: float = 0.70 # keep as-is
|
| 36 |
+
w_dino: float = 0.30 # keep as-is
|
| 37 |
+
base_seed: int = 42 # keep as-is
|
| 38 |
+
proxy_long_side: int = 512 # down from 1024 (~3–4× faster proxy diffusion)
|
| 39 |
question_template: str = VQA_TEMPLATE
|
| 40 |
|
| 41 |
|