mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-18 20:38:15 +08:00
get_batch() called torch.nn.functional.interpolate on a mismatched noise mask but discarded the result, so the mask kept its original size. The height check was also missing the *8 pixel scale. When a rebatched latent carried a noise mask that did not match samples * 8 (e.g. from SetLatentNoiseMask, which stores masks unscaled), the unresized mask later failed to concatenate with another latent's default mask and raised a size-mismatch RuntimeError. Assign the interpolate result back to mask and compare the height against shape[-2] * 8. |
||
|---|---|---|
| .. | ||
| app_test | ||
| assets_test | ||
| comfy_api_test | ||
| comfy_extras_test | ||
| comfy_quant | ||
| comfy_test | ||
| execution_test | ||
| folder_paths_test | ||
| jobs_cancel_test | ||
| prompt_server_test | ||
| security_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/