mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-19 04:48:17 +08:00
torch.randint's high bound is exclusive, so randint(low=0, high=len(ns) - 1) sampled indices 0..len(ns)-2 and never selected the final candidate. With swap_size=2 this always returned the first tile count, silently disabling the node's randomization. Use high=len(ns) so every option is reachable. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| image_stitch_test.py | ||
| nodes_hypertile_test.py | ||
| nodes_math_test.py | ||
| nodes_number_convert_test.py | ||
| test_seedvr2_conditioning.py | ||
| test_seedvr2_nodes.py | ||
| test_seedvr2_post_processing.py | ||
| test_seedvr2_temporal_chunk.py | ||