mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-09 16:07:29 +08:00
Bria's /remove_background endpoint accepts background_color='Transparent' when paired with an alpha-capable container/codec; pass output_container_and_codec= 'webm_vp9' in that case (otherwise mp4_h264, unchanged). The returned WebM flows through ComfyUI's VIDEO type as a file reference, so Save Video with the default auto/auto settings stream-copies it byte-for-byte with the alpha plane intact (covered by new test_save_to_auto_preserves_vp9_alpha_via_stream_copy). BriaTransparentVideoBackground is kept as-is because it remains the supported path for the IMAGE+MASK workflow: Get Video Components currently cannot expose alpha for VP9 streams (PyAV's default vp9 decoder drops the side alpha layer), so the per-frame compositing workflow still needs the dedicated node that decodes via libvpx-vp9 itself. |
||
|---|---|---|
| .. | ||
| app_test | ||
| assets_test | ||
| comfy_api_test | ||
| comfy_extras_test | ||
| comfy_quant | ||
| comfy_test | ||
| execution_test | ||
| folder_paths_test | ||
| prompt_server_test | ||
| seeder_test | ||
| server/utils | ||
| server_test | ||
| utils | ||
| deploy_environment_test.py | ||
| feature_flags_test.py | ||
| README.md | ||
| requirements.txt | ||
| websocket_feature_flags_test.py | ||
Pytest Unit Tests
Install test dependencies
pip install -r tests-unit/requirements.txt
Run tests
pytest tests-unit/