Skip to content

Conversation

@hafeezhmha
Copy link

@hafeezhmha hafeezhmha commented Jan 20, 2026

Fixes #63, addresses #74 (partial)

Three small fixes:

  1. File ordering (random file order processing #63)- Sort file paths in predict/render commands so files process in order instead of random. Helps with video frames and sequential data.

  2. Deprecated warning - Replace deprecated logger.warn with logger.warning in io.py

  3. PLY save performance (Processing time over 30s for a single image #74 partial)** - Speed up PLY saving by using np.core.records.fromarrays instead of list(map(tuple, ...)).

    • Benchmarked 8x faster 40ms → 5ms for 10k Gaussians
    • Saves 3-4s on typical scenes
    • Note: Doesn't fix the main bottleneck (ViT init is still)

Tested on Linux

Fixes apple#63
Addresses apple#74 (partial)

This PR fixes three issues:

1. Random file order processing (apple#63)
   Added sorting to file path collection in predict and render commands.
   Files are now processed in alphabetical order instead of random filesystem order.
   Important for sequential workflows like video frames.

2. Deprecated logger.warn
   Replaced logger.warn() with logger.warning() in io.py to remove the deprecation warning.

3. PLY save performance (apple#74 partial fix)
   Optimized the array construction in save_ply by using np.core.records.fromarrays()
   instead of list(map(tuple, ...)). Also moved tensor CPU transfers earlier.

   Benchmark results: 8x faster PLY saving (40ms -> 5ms for 10k Gaussians).
   This saves about 3-4 seconds on the full pipeline for typical scenes.

   Note: This doesn't fix the main bottleneck in apple#74 (ViT initialization takes ~6s).

Tested on Linux. All changes are backward compatible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

random file order processing

1 participant