Files
iGavroche-rocm-ninodes/tests
Gavroche 97e76453a1 TEST: Add comprehensive PIL compatibility tests
Added comprehensive tests to verify PIL compatibility fixes:

1. Problematic process_output handling:
   - Tests handling of process_output that returns wrong format
   - Verifies fallback to original tensor works correctly

2. Crashing process_output handling:
   - Tests handling of process_output that raises exceptions
   - Verifies graceful error recovery

3. PIL compatibility verification:
   - Tests actual PIL Image creation with our output
   - Verifies correct image size (512x512) and mode (RGB)
   - Simulates ComfyUI's image processing pipeline

4. Different VAE types:
   - Tests both SD (4-channel) and SDXL (16-channel) latents
   - Verifies correct output format for all VAE types

Also fixed .gitignore to allow test framework files while excluding
specific test data files.

All tests pass! ✅ PIL compatibility test passed with fixes
The fixes ensure our node always returns valid (B, 3, H, W) float32 tensors
that are compatible with PIL Image.fromarray().
2025-10-10 21:39:34 -04:00
..