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).
20 lines
688 B
JSON
20 lines
688 B
JSON
{
|
|
"_comment": "Fixed prompt set for Phase 1 baseline reproducibility. Do not edit without bumping the bench version: changing prompts invalidates cross-baseline PSNR comparisons.",
|
|
"seed": 0,
|
|
"negative_prompt": "blurry, low quality, text, watermark",
|
|
"prompts": [
|
|
{
|
|
"id": "p01_portrait",
|
|
"text": "a portrait of an astronaut in a sunflower field, soft natural light, 35mm film"
|
|
},
|
|
{
|
|
"id": "p02_cityscape",
|
|
"text": "a futuristic city skyline at sunset, glass towers, volumetric lighting, cinematic"
|
|
},
|
|
{
|
|
"id": "p03_still_life",
|
|
"text": "a still life of fruit on a wooden table, oil painting, dramatic chiaroscuro"
|
|
}
|
|
]
|
|
}
|