|
2 | 2 |
|
3 | 3 | KeyFlow Studio integrates several third-party model workflows. Model weights are not committed to this repository. |
4 | 4 |
|
| 5 | +## Attribution And Ownership |
| 6 | + |
| 7 | +KeyFlow Studio provides integration code, graph orchestration, UI controls, and worker/runtime glue. The model architectures, upstream packages, checkpoints, papers, names, and licenses belong to their respective authors and projects. |
| 8 | + |
| 9 | +Before redistributing this repository, binaries, screenshots, demos, or generated assets, review each upstream license and model card. Some projects may restrict commercial use, redistribution of weights, or use of generated assets. |
| 10 | + |
| 11 | +Known upstream projects currently referenced by the integration: |
| 12 | + |
| 13 | +| Workflow | Upstream project / source | Notes | |
| 14 | +| --- | --- | --- | |
| 15 | +| CorridorKey | [nikopueringer/CorridorKey](https://github.com/nikopueringer/CorridorKey), [CorridorKey_v1.0](https://huggingface.co/nikopueringer/CorridorKey_v1.0), [CorridorKeyBlue_1.0](https://huggingface.co/nikopueringer/CorridorKeyBlue_1.0) | Green/blue screen keying checkpoints are resolved outside Git history. Check upstream terms before redistribution. | |
| 16 | +| BiRefNet | [ZhengPeng7/BiRefNet](https://huggingface.co/ZhengPeng7/BiRefNet) and related `ZhengPeng7/BiRefNet_*` Hugging Face repos | Used as a mask/alpha source. Presets may map to different upstream repos. | |
| 17 | +| GVM | [geyongtao/gvm](https://huggingface.co/geyongtao/gvm) | Used for generative video matting / alpha generation. KeyFlow includes compatibility patch files for the worker/runtime path. | |
| 18 | +| MatAnyone2 | [pq-yang/MatAnyone2](https://github.com/pq-yang/MatAnyone2) | Optional matting workflow. The checkpoint is downloaded or placed outside Git history. | |
| 19 | +| SAM2 | [facebookresearch/sam2](https://github.com/facebookresearch/sam2) | Optional segmentation workflow when installed in the active environment. | |
| 20 | +| SAM3 | [facebookresearch/sam3](https://github.com/facebookresearch/sam3), [facebook/sam3](https://huggingface.co/facebook/sam3) | Optional SAM3 workflow. Weight download may require manual setup or upstream access rules. | |
| 21 | + |
| 22 | +This table is attribution documentation, not a license grant. Always follow the upstream project instructions for installation, citation, and allowed use. |
| 23 | + |
5 | 24 | At runtime, the application checks the configured model cache and downloads supported weights automatically when they are available from the configured upstream source. Some upstream models may still require manual license acceptance, private tokens, or external setup, so automatic download should be treated as a supported path rather than a universal guarantee for every model. |
6 | 25 |
|
7 | 26 | ## Storage Policy |
@@ -31,10 +50,32 @@ export KEYFLOW_MODELS_DIR="$HOME/.local/share/com.keyflow.studio/models" |
31 | 50 |
|
32 | 51 | CorridorKey weights can be resolved through the app-managed download path when available. Keep the checkpoint outside Git history. |
33 | 52 |
|
| 53 | +Supported checkpoint sources currently include the green-screen `nikopueringer/CorridorKey_v1.0` and blue-screen `nikopueringer/CorridorKeyBlue_1.0` repositories. The local integration defaults to `screen_color=green` for backward compatibility. |
| 54 | + |
34 | 55 | ## BiRefNet, SAM, GVM, MatAnyone2 |
35 | 56 |
|
36 | 57 | Each model may have separate licensing, hardware, and storage requirements. Check the upstream project before redistributing weights or derived assets. |
37 | 58 |
|
| 59 | +## Tested Runtime Notes |
| 60 | + |
| 61 | +The current development/test baseline is intentionally conservative: |
| 62 | + |
| 63 | +- Local app and regression tests have been run on an older Intel i7 Mac in CPU mode. |
| 64 | +- Cloud/server worker workflows have also been tested on a CUDA GPU worker. |
| 65 | +- CPU mode is useful for validation and small samples, but production-sized video model inference is expected to be slow on old Intel hardware. |
| 66 | + |
| 67 | +## Legacy Intel macOS Compatibility |
| 68 | + |
| 69 | +Some modern ML packages no longer fit older Intel macOS constraints cleanly. For that reason the repository uses compatibility pins and local integration workarounds, including: |
| 70 | + |
| 71 | +- `torch==2.2.2` and `torchvision==0.17.2` on `darwin x86_64`, because newer upstream combinations may not provide usable wheels for this architecture. |
| 72 | +- `numpy<2` on `darwin x86_64` to avoid binary compatibility problems with older PyTorch wheels. |
| 73 | +- `diffusers>=0.30,<0.32` for GVM compatibility, because newer versions changed behavior/dependencies in ways that require newer Torch stacks. |
| 74 | +- `scripts/install_sam2_intel_workaround.sh` for Intel macOS SAM2 package constraints. |
| 75 | +- `ec2_worker/_patch/` patch files for cloud/runtime compatibility around GVM components. |
| 76 | + |
| 77 | +These patches and pins are pragmatic compatibility work, not forks of the upstream projects. When running on modern Linux/CUDA machines, prefer the CUDA-compatible PyTorch build that matches the driver/runtime and validate the model-specific stack separately. |
| 78 | + |
38 | 79 | ## Public Repository Rule |
39 | 80 |
|
40 | 81 | Before making the repository public, verify that model weights and generated media are absent from both the working tree and Git history. |
0 commit comments