Drop pixel-walk lattice sizing
This commit is contained in:
parent
959076821e
commit
cbe1abd8c2
9 changed files with 100 additions and 454 deletions
|
|
@ -316,13 +316,13 @@ def test_infer_lattice_emits_search_progress_events(monkeypatch) -> None:
|
|||
cuda = _FakeCuda()
|
||||
|
||||
monkeypatch.setattr(inference_module, "_require_torch", lambda: (_FakeTorch(), object()))
|
||||
monkeypatch.setattr(inference_module, "_estimate_lattice_autocorr_details", lambda rgba: (4.0, 4.0))
|
||||
monkeypatch.setattr(
|
||||
inference_module,
|
||||
"_estimate_lattice_spacing_details",
|
||||
lambda rgba: (inference_module.SpacingEstimate(None, 0.0, None, 0.0, (), ()),) * 2,
|
||||
"_hint_target_sizes_from_autocorr",
|
||||
lambda width, height, *, autocorr_x, autocorr_y, shared_prior: [],
|
||||
)
|
||||
monkeypatch.setattr(inference_module, "_hint_target_sizes_from_spacing", lambda width, height, spacing_x, spacing_y: [])
|
||||
monkeypatch.setattr(inference_module, "_estimate_lattice_prior_details", lambda rgba, **kwargs: (4.0, 4.0, 0.5))
|
||||
monkeypatch.setattr(inference_module, "_estimate_lattice_prior_details", lambda rgba: (4.0, 4.0, 0.5))
|
||||
monkeypatch.setattr(
|
||||
inference_module,
|
||||
"_candidate_dims",
|
||||
|
|
|
|||
Loading…
Reference in a new issue