Commit Graph
14 Commits
Author SHA1 Message Date
aszc-dev ef2a18cff3 chore(phase1): pin baseline toolchain and add bench harness scaffold
Phase 1 of the modernization plan: freeze the currently-working environment
so later refactors have a measured reference point.

- Pin python-coreml-stable-diffusion to commit e5d960c4 (the one already
  installed in the maintainer's apple_env), plus torch==2.0.1, coremltools==8.2
  and numpy<1.25 to match the only env that loads ComfyUI successfully
  (Comfy's checkpoint-safe-loading branch in utils.py is gated on torch>=2.4,
  so newer torch + numpy 1.23 breaks at import).
- Mirror the same pins in requirements.txt and commit uv.lock for
  reproducible installs.
- Add requires-comfyui pinning ComfyUI to ab541335 (the validated commit).
- Fix tests/unit/test_chunks.py fixture: get_model_config() now takes a
  ModelVersion argument; pass ModelVersion.SD15 (the previously-broken test
  was the only Phase 1 production-code change required).
- Add the Phase 1 baseline harness: bench/run.py (direct Core ML UNet
  latency, deterministic), bench/scripts/convert_sd15.py (one-command
  conversion bypassing the node graph), bench/scripts/smoke_image.py (POSTs
  the existing e2e workflow to a local ComfyUI server and saves the Core ML
  image), bench/env/capture.sh (env snapshot), bench/prompts.json (fixed
  prompt set).
- Ignore apple_env/, comfy_env/, and bench/scripts/*.log.

Tests: 20/20 unit pass (test_chunks + test_controlnet).
2026-05-22 15:06:24 +02:00
aszc-dev c96059ff0b Add basic conversion integration test 2024-07-04 08:44:37 +02:00
aszc-dev 3224d62342 Restructure tests directory 2024-07-04 08:44:37 +02:00
aszc-dev fa0735746c Refactor model config 2023-11-09 00:04:28 +01:00
aszc-dev c26099b334 Add CoreMLInputs to handle inputs 2023-11-08 22:19:41 +01:00
aszc-dev 44a380ffdf img2img works 2023-11-03 01:29:32 +01:00
aszc-dev db0aea3d9c Fix chunk_inputs 2023-11-01 22:16:47 +01:00
aszc-dev 901ea6da16 Simplify no_control 2023-10-31 21:57:32 +01:00
aszc-dev dd438f66cc Fix controlnet residuals chunking 2023-10-31 21:40:11 +01:00
aszc-dev 41797203d7 Improve chunking and padding 2023-10-31 02:49:35 +01:00
aszc-dev 4d83603c98 Chunking works for ControlNet 2023-10-30 18:16:51 +01:00
aszc-dev 8a3e9332e1 Chunk and pad batches 2023-10-30 16:17:18 +01:00
aszc-dev d0629b4efc Rearrange stuff 2023-10-30 11:15:42 +01:00
aszc-dev 4cd2226148 Add Core ML Sampler 2023-10-29 23:55:18 +01:00