glarr commited on
Commit
6d3ff2a
·
1 Parent(s): 9af5edb

Adjust defaults

Browse files
Files changed (1) hide show
  1. 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.90 # stop when mean effective VQAScore >= this ...
30
- dino_gate: float = 0.80 # ... AND DINO patch cosine >= this
31
- fail_threshold: float = 0.75 # predicates below this are sent to the rewriter
32
- parent_gate: float = 0.5 # DSG: children of a parent below this are blocked (scored 0)
33
- ground: bool = True # verify extracted predicates on the OG image and prune hallucinations
34
- grounding_threshold: float = 0.5
35
- w_vqa: float = 0.7
36
- w_dino: float = 0.3
37
- base_seed: int = 42 # proxy seed at iteration t is base_seed + t
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