[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116852":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":10,"pushedAt":30,"updatedAt":31,"readmeContent":32,"aiSummary":10,"trendingCount":16,"starSnapshotCount":16,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},116852,"open4dgs-core","ASU-NEM-Labs\u002Fopen4dgs-core","ASU-NEM-Labs","Tools for preparing synchronized multi-camera captures, initializing dynamic Gaussian scenes, and exporting 4D reconstructions. Companion to Open4DGS-Trigs.","https:\u002F\u002Fopen4dgs.asunemlabs.com\u002F",null,"Python",82,10,4,1,0,5,16,26,62.6,"MIT License",false,"main",[25,26,27,28,29],"3d-reconstruction","4dgs","computer-vision","gaussian-splatting","volumetric-video","2026-11-21 01:15:55","2026-11-23 20:16:06","# Open4DGS-Core\n\nOpen4DGS-Core prepares synchronized multi-camera video, initializes dynamic Gaussian scenes, and exports TRiGS reconstructions. Training is provided by [Open4DGS-Trigs](https:\u002F\u002Fgithub.com\u002FASU-NEM-Labs\u002Fopen4dgs-trigs), the companion AGPL-3.0 repository.\n\nThe trainer can also **learn per-camera timing offsets during reconstruction**, refining residual sub-frame synchronization errors alongside scene motion. See [learned camera timing offsets](https:\u002F\u002Fgithub.com\u002FASU-NEM-Labs\u002Fopen4dgs-trigs#learn-camera-timing-offsets) for this opt-in feature and its settings.\n\nStart with the [two-repository installation guide](SETUP.md). In the development repository, the trainer also lives under `train\u002Ftrigs\u002F`.\n\n## Release status and support\n\nThis is an **initial research release**. Interfaces, defaults, and file formats may\nchange as the project develops. The roadmap describes planned work without\ncommitted delivery dates.\n\nThe main Linux setup was exercised on **Ubuntu 24.04, Python 3.11, CUDA 12.8,\nand an NVIDIA RTX 3090**. The trainer setup also documents a reported Windows\n11 \u002F RTX PRO 6000 Blackwell configuration. These are specific tested or reported\nconfigurations, not a guarantee for every GPU or operating system. **WSL 2 has\nnot yet been validated for this release.** See the setup guides for details.\n\nThe split repositories have passed local dependency coverage checks and the\ntrainer package builds successfully. A fresh end-to-end GPU run using only the\nsplit repositories has not yet been completed. Reconstruction quality, memory\nrequirements, and runtime depend on the capture, masks, calibration, and GPU;\nlarge scenes may need substantial system RAM and GPU memory.\n\nPlease use GitHub issues for reproducible bugs and installation problems. Include\nboth repository versions, your environment, the command, and a redacted error\nlog. Support is best effort; response times and feature delivery are not\nguaranteed. For suspected security problems, see [SECURITY.md](SECURITY.md).\n\n## Example datasets\n\nExample captures are hosted in\n[Open4DGS-Datasets on Hugging Face](https:\u002F\u002Fhuggingface.co\u002Fdatasets\u002Fasu-nem-labs\u002Fopen4dgs-datasets):\n\n- **example capture:** a dance capture recorded with 27 cameras.\n- **spidermen-01:** two performers in Spider-Man costumes, recorded with 45 cameras.\n\nBoth include original camera videos with embedded timecode and separate\nalignment footage. The dataset README provides download and extraction\ninstructions; downloads preserve the camera folder structure.\n\nThe datasets use a separate license permitting **private, noncommercial\nevaluation and testing only**; this repository's MIT license does not apply\nto them. Sign in to Hugging Face and\naccept the dataset terms to obtain access. Sharing footage, renders, or\nreconstructed models requires prior written permission. See the dataset\nlicense for the full terms.\n\n## Roadmap\n\n- [x] Initial Code Release\n- [ ] Prep \u002F Training time improvements\n- [ ] Unity Plugin with sample project\n- [ ] Web SDKs (sparkjs-based and threejs-based)\n- [ ] 8th Wall sample project\n- [ ] Compression and Streaming\n\n## Setup\n\n- [Preparation setup](prep\u002FSETUP.md) covers video tools, COLMAP, RoMa, MEMFOF, and optional masking dependencies. RoMa v2 and MEMFOF are the default initialization backends.\n- [Trainer setup](https:\u002F\u002Fgithub.com\u002FASU-NEM-Labs\u002Fopen4dgs-trigs\u002Fblob\u002Fmain\u002FSETUP.md) covers the training environment and CUDA extensions. See also the [trainer README](https:\u002F\u002Fgithub.com\u002FASU-NEM-Labs\u002Fopen4dgs-trigs\u002Fblob\u002Fmain\u002FREADME.md).\n\nThe documented setup was exercised on Ubuntu 24.04 with Python 3.11, CUDA 12.8 and an RTX 3090. See the setup guides for validation limits, other GPU architectures, and optional environments. Model weights are downloaded separately. RoMa v2 uses DINOv3, which has its own [license](https:\u002F\u002Fgithub.com\u002Ffacebookresearch\u002Fdinov3\u002Fblob\u002Fmain\u002FLICENSE.md), distinct from the RoMa v2 code license.\n\n### Preparation environment on Ubuntu\n\nInstall the system tools, create a Python 3.11 Conda environment, and install the common Python packages and the default matching and optical-flow backends:\n\n```bash\nsudo apt-get update\nsudo apt-get install -y build-essential git ninja-build curl ca-certificates \\\n  libgl1 libglib2.0-0 ffmpeg tmux\nconda create -n trigs python=3.11 pip -y\nconda activate trigs\nconda install -y nvidia\u002Flabel\u002Fcuda-12.8.0::cuda-toolkit\nexport CUDA_HOME=\"$CONDA_PREFIX\"\nexport PATH=\"$CUDA_HOME\u002Fbin:$HOME\u002F.local\u002Fbin:$PATH\"\nexport TORCH_CUDA_ARCH_LIST=8.6  # RTX 3090; use the target for your GPU\n\nuv pip install --python \"$CONDA_PREFIX\u002Fbin\u002Fpython\" \\\n  torch torchvision --index-url https:\u002F\u002Fdownload.pytorch.org\u002Fwhl\u002Fcu128\nuv pip install --python \"$CONDA_PREFIX\u002Fbin\u002Fpython\" \\\n  numpy scipy pillow opencv-python tqdm imageio matplotlib pycolmap\nuv pip install --python \"$CONDA_PREFIX\u002Fbin\u002Fpython\" \\\n  \"git+https:\u002F\u002Fgithub.com\u002FParskatt\u002FRoMaV2.git@v2.0.1\" \\\n  \"git+https:\u002F\u002Fgithub.com\u002Fmsu-video-group\u002Fmemfof.git@a51de9fc59c6fe20ba08e079372c7b583d58a712\"\n```\n\nThis assumes [Conda and uv are installed](prep\u002FSETUP.md#2-create-the-shared-python-environment). Alignment also needs the standalone COLMAP executable; `pycolmap` does not provide it. Follow the [COLMAP build instructions](prep\u002FSETUP.md#3-install-the-colmap-command-line-program) and their validation notes. Install [mask dependencies](prep\u002FSETUP.md#5-install-mask-generation-dependencies-as-needed) for the chosen mask method. For trainer installation, follow [Open4DGS-Trigs setup](https:\u002F\u002Fgithub.com\u002FASU-NEM-Labs\u002Fopen4dgs-trigs\u002Fblob\u002Fmain\u002FSETUP.md), including its Windows instructions.\n\nIf preparation packages are installed into the trainer's environment, `uv run` can remove packages outside the trainer lockfile, including RoMa and MEMFOF. Activate the environment and run its console scripts directly, or use `uv run --no-sync` after installation. See [environment guidance](https:\u002F\u002Fgithub.com\u002FASU-NEM-Labs\u002Fopen4dgs-trigs\u002Fblob\u002Fmain\u002FSETUP.md#sharing-an-environment-with-preparation-tools).\n\n## Pipeline\n\nThe examples below use `REPO` for the absolute path to this checkout and assume commands run from the capture data directory. Replace the bracketed values with your own paths and capture settings. Frame ranges and frame rates must match the footage; use each script's `--help` for further options. The detailed, current training defaults and timing workflow are in [docs\u002Frun-pipeline.md](docs\u002Frun-pipeline.md).\n\n```bash\nexport REPO=\u002Fabsolute\u002Fpath\u002Fto\u002Fopen4dgs-core\ncd \u002Fabsolute\u002Fpath\u002Fto\u002Fcapture\n```\n\n### 1. Extract frames\n\nFor timecode-synchronized footage organized in camera subfolders, choose a common start timecode present in each video. Take names such as `C0007.MP4` correspond to `--take 7`.\n\n```bash\npython \"$REPO\u002Fprep\u002Fextract\u002Fextract_synced_sequence.py\" \\\n  --input-dir \u002Fpath\u002Fto\u002Fcamera-videos --output-dir images \\\n  --start-timecode HH:MM:SS:FF --num-frames \u003CFRAME_COUNT> \\\n  --force-rotation n --take 7 --skip-existing\n```\n\nSee [extraction tools](prep\u002Fextract\u002F) for other capture formats.\n\n### 2. Align cameras\n\nExtract representative alignment frames in the same camera layout, then build a COLMAP reference model:\n\n```bash\npython \"$REPO\u002Fprep\u002Falign\u002Fbuild-colmap-ref-trigs.py\" \\\n  --data-dir \u002Fpath\u002Fto\u002Falign --ref-frame 1\ncp -r \u002Fpath\u002Fto\u002Falign\u002Fsparse .\u002Fsparse\ncp \u002Fpath\u002Fto\u002Falign\u002Freference_export.json .\u002Freference_export.json\n```\n\nInspect the model analysis and registered cameras; the stage guide suggests a mean reprojection error below one pixel as a target. Verify calibration for the capture rather than relying on that number alone.\n\n### 3. Generate masks\n\nFor Background Matting V2, provide a clean background plate for each camera under `background\u002F`. The clean-plate utility pairs sorted source files with sorted camera folders; inspect its pairing before use.\n\n```bash\npython \"$REPO\u002Fprep\u002Fmask\u002Fextract_clean_plate.py\" \\\n  --source-root \u002Fpath\u002Fto\u002Fclean-plates --images-dir images \\\n  --output-dir background --frame-number 0\n\npython \"$REPO\u002Fprep\u002Fmask\u002Fgenerate_masks.py\" --data-dir . \\\n  --start-frame \u003CFIRST_FRAME> --end-frame \u003CLAST_FRAME> \\\n  --method bgmv2 --backbone-scale 0.5 --refine-mode thresholding \\\n  --refine-threshold 0.015 --foregrounds-output-dir foregrounds \\\n  --foreground-blend-alpha 0.90 --foreground-solid-alpha 0.98 \\\n  --foreground-zero-alpha 0.02 --mask-alpha-gamma 1.0\n```\n\nThe script also supports SAM 2 when clean plates are unavailable; see [mask setup](prep\u002FSETUP.md#5-install-mask-generation-dependencies-as-needed).\n\n### 4. Solve camera timing and rolling shutter\n\nFor cameras without genlock, the optional visual solver estimates sub-frame offsets from motion. The example also models rolling shutter. The 15 ms readout was measured for a Sony RX0 II rig at 60 fps; measure the readout for your own camera and sensor mode.\n\n```bash\npython \"$REPO\u002Fprep\u002Fsync\u002Fcalculate-sync.py\" \\\n  --reference-json reference_export.json --images-root images \\\n  --image-pattern '{frame:06d}.jpg' --fps 60 \\\n  --frame-start \u003CFIRST_FRAME> --frame-end \u003CLAST_FRAME> \\\n  --camera-neighbors 12 --phase-estimator direct --rs-mode fixed \\\n  --rs-readout-ms 15.0 --out-dir sync_run --output-sync sync_run\u002Fsync.json\n\npython \"$REPO\u002Fprep\u002Fsync\u002Fmake_timing_candidate.py\" \\\n  --resolve-dir sync_run --readout-ms 15 --weak-cameras \\\n  --unresolved-rs --out sync_run\u002Ftiming_candidate.json\n```\n\nThe solver validates the visual estimate and can publish a timecode-only fallback; inspect its report. The timing export can stop when quality gates fail. See [sync documentation](prep\u002Fsync\u002FREADME.md) and [the pipeline guide](docs\u002Frun-pipeline.md#1-capture-timing) for fallbacks and optional inputs. For genlocked, global-shutter footage, skip this stage and omit the timing argument below.\n\n### 5. Initialize points\n\nRoMa v2 matches views and MEMFOF tracks motion across frames. The default is 60 fps and a five-frame keyframe stride, with additional sub-keyframes for fast motion. Pass `--fps 30` for 30 fps footage.\n\n```bash\npython \"$REPO\u002Fprep\u002Finit\u002Fprep-roma-trigs-memory.py\" \\\n  --reference-json reference_export.json --images-root images \\\n  --frame-start \u003CFIRST_FRAME> --frame-end \u003CLAST_FRAME> \\\n  --timing-json sync_run\u002Ftiming_candidate.json --output-path keyframes.npz\n```\n\nOmit `--timing-json` for genlocked, global-shutter footage; `--sync-json` is also supported for a sync-only input. The NPZ carries initialization and capture metadata into training.\n\n### 6. Train and evaluate\n\nWith the trainer environment installed and active:\n\n```bash\ntrigs-train-colmap --data-dir . --output-dir runs\u002Fexample \\\n  --npz-path keyframes.npz --timing-json sync_run\u002Ftiming_candidate.json \\\n  --config.n-steps 30000\n\ntrigs-eval-colmap --data-dir . --runs runs\u002Fexample --step -1 \\\n  --out-dir runs\u002Fexample\u002Feval --shutter captured\n```\n\nOmit `--timing-json` when no timing file is needed. The trainer takes the frame range, stride, fps, and target population from the NPZ. See the [trainer guide](https:\u002F\u002Fgithub.com\u002FASU-NEM-Labs\u002Fopen4dgs-trigs\u002Fblob\u002Fmain\u002FREADME.md) and [pipeline guide](docs\u002Frun-pipeline.md#3-training) for run behavior and options.\n\nTo refine residual camera timing errors during training, add\n`--config.learn-camera-time-offsets` to the training command. Offset learning\nis disabled by default and starts after an 8,000-step warmup when enabled.\nUse the preparation-stage synchronization as the starting point; this learns\none constant temporal correction per camera and does not replace initial\nsynchronization or rolling-shutter correction. See the\n[offset-learning guide](https:\u002F\u002Fgithub.com\u002FASU-NEM-Labs\u002Fopen4dgs-trigs#learn-camera-timing-offsets).\n\n### 7. Export\n\nExport PLYs using the trainer, or create a timeline file using the delivery tool:\n\n```bash\ntrigs-export-plys --ckpt-path runs\u002Fexample\u002Ftrigs_ckpt.pt --output-dir output_plys \\\n  --n-frames \u003CFRAME_COUNT> --fps 60\n\npython \"$REPO\u002Fdeliver\u002Fmake-trigs-timeline.py\" from-checkpoint \\\n  --output output.trigsbin --checkpoint runs\u002Fexample\u002Ftrigs_ckpt.pt \\\n  --frame-rate 60 --total-frames \u003CFRAME_COUNT> \\\n  --chunk-duration-seconds 2.5 --chunk-overlap-seconds 0 \\\n  --tensor-dtype motion32 --overwrite --fade-frames 0\n```\n\nUse the actual frame rate and frame count for the capture. Some final COLMAP checkpoints do not contain the training configuration; when the run changes deformation settings, use a snapshot saved with `--config.checkpoint-dir` to preserve those settings for PLY export. See each command's `--help` for export options.\n\n## Inspecting preparation and training\n\nTwo viewers cover different stages of the pipeline:\n\n| Viewer | Repository | Input | Rendering |\n| --- | --- | --- | --- |\n| [NPZ initialization viewer](#npz-initialization-viewer) | Open4DGS-Core | Prepared `keyframes.npz` | Point cloud in the browser; no CUDA required |\n| [Interactive trainer viewer](https:\u002F\u002Fgithub.com\u002FASU-NEM-Labs\u002Fopen4dgs-trigs#interactive-trainer-viewer) | Open4DGS-Trigs | Trained `.pt` checkpoints or live training snapshots | Gaussian rendering on an NVIDIA CUDA GPU |\n\n### NPZ initialization viewer\n\nUse [prep\u002Finit\u002Fnpz-viewer.py](prep\u002Finit\u002Fnpz-viewer.py) to inspect the output of\n`prep-roma-trigs-memory.py` before training. From the `open4dgs-core` checkout\nroot, with the preparation environment active:\n\n```bash\npython prep\u002Finit\u002Fnpz-viewer.py \\\n  --npz \u002Fpath\u002Fto\u002Fcapture\u002Fkeyframes.npz \\\n  --port 8765 --max-points 100000\n```\n\nOpen **http:\u002F\u002Flocalhost:8765**. The script also attempts to open your browser\nautomatically; add `--no-browser` when running remotely. Keep the terminal open\nand press `Ctrl+C` to stop the server.\n\nThe Python server needs **NumPy**, and the browser needs **WebGL**. CUDA,\nPyTorch, and the trainer package are not required for this viewer. Its page loads\nThree.js and fonts from external CDNs, so the browser needs internet access for\nthose assets. The input must contain `positions` and `times`; the preparation\noutput also supplies colors, motion, source frames, and other useful metadata.\n\n- **Navigate:** left-drag to orbit, right- or middle-drag to pan, and scroll to\n  zoom. Camera presets, scene rotation, and **Reset Up** help orient the scene.\n- **Inspect time:** use the frame slider or left\u002Fright arrow keys. Press Space\n  to play\u002Fpause; adjust playback FPS in the sidebar. Frames represent the\n  available initialization source-frame groups, not rendered trained motion.\n- **Inspect motion and classification:** switch between RGB, time and velocity\n  heatmaps, static\u002Fdynamic and saved-mask views. Toggle velocity vectors and\n  inspect per-frame statistics.\n- **Plan preparation regions:** adjust the stage-capsule and detail-sphere\n  previews, then use **Copy ROMA args** to copy their settings into a preparation\n  command. Previewing regions does not edit the input NPZ.\n\n`--max-points` caps the points displayed per source-frame group; lower it if the\nbrowser becomes slow. The current CLI default is 1,400,000, so the example uses\nan explicit smaller limit. This subsamples the display, not the saved NPZ. The\nserver still loads the full NPZ into RAM, and the browser prefetches frames, so\nlarge captures can need substantial memory even with a lower point limit.\n\nFor a remote host, run the server there with `--no-browser`, then forward the\nport from your local computer:\n\n```bash\nssh -N -L 8765:localhost:8765 user@remote-host\n```\n\nOpen **http:\u002F\u002Flocalhost:8765** locally. Use trusted machines and protect the\nserver ports from public access; see [SECURITY.md](SECURITY.md). Run\n`python prep\u002Finit\u002Fnpz-viewer.py --help` for the complete CLI options.\n\n### Interactive trainer viewer\n\nThe trainer's browser viewer supports playback, visibility and motion diagnostics,\nand following a running training job through periodically saved snapshots. With\nthe trainer environment installed and active:\n\n```bash\npython -m trigs.core.viewer --ckpt \u002Fpath\u002Fto\u002Frun\u002Ftrigs_ckpt.pt --port 8080\n\n# Alternatively, follow training snapshots:\npython -m trigs.core.viewer --watch \u002Fpath\u002Fto\u002Frun\u002Fviewer_snapshots --port 8080\n```\n\nOpen **http:\u002F\u002Flocalhost:8080**. This viewer needs CUDA on the machine running\nPython. See the [trainer viewer guide](https:\u002F\u002Fgithub.com\u002FASU-NEM-Labs\u002Fopen4dgs-trigs#interactive-trainer-viewer)\nfor controls, snapshot settings, memory considerations, and matching the viewer's\nvisibility threshold to the training configuration.\n\n## The `.trigsbin` intermediate format\n\nThe export workflow above produces `.trigsbin` files for transferring reconstructions between tools and for inspection and editing. The format stores full-size scene tensors, so files can be large. **It is an intermediate format and is not streamable.**\n\nA separate delivery format with compression and streaming support is planned. These capabilities are roadmap items and are not features of the current `.trigsbin` format.\n\n## Edit reconstructions in SuperSplat\n\nOur [customized SuperSplat editor](https:\u002F\u002Fcmlapps.com\u002Ftrigs-editor\u002F) supports loading and editing `.trigsbin` files.\n\nIts customized sphere and box tools let you delete content **inside or outside** a selected volume over a specified **frame range**. This is particularly useful for removing the surrounding environment from reconstructions trained without masks.\n\n## Citations and credits\n\nOpen4DGS-Trigs builds on [TriGSVanilla](https:\u002F\u002Fgithub.com\u002FOpsiClear-4DGS\u002FTriGSVanilla), an independent implementation of [TRiGS](https:\u002F\u002Farxiv.org\u002Fabs\u002F2604.00538). The [trainer citations](https:\u002F\u002Fgithub.com\u002FASU-NEM-Labs\u002Fopen4dgs-trigs\u002Fblob\u002Fmain\u002FREADME.md#citations-and-credits) also cover 3D Gaussian Splatting, FreeTimeGS, LongVolCap's temporal hierarchy, and gsplat.\n\nPreparation uses [RoMa v2](https:\u002F\u002Farxiv.org\u002Fabs\u002F2511.15706), [DINOv3](https:\u002F\u002Farxiv.org\u002Fabs\u002F2508.10104), [MEMFOF](https:\u002F\u002Farxiv.org\u002Fabs\u002F2506.23151), [Farnebäck optical flow](https:\u002F\u002Fwww.ida.liu.se\u002Fext\u002FWITAS-ev\u002FComputer_Vision_Technologies\u002FPaperInfo\u002Ffarneback03.html), and [Lucas–Kanade tracking](https:\u002F\u002Fpublications.ri.cmu.edu\u002Fan-iterative-image-registration-technique-with-an-application-to-stereo-vision-ijcai). When used, cite [RoMa v1](https:\u002F\u002Fopenaccess.thecvf.com\u002Fcontent\u002FCVPR2024\u002Fhtml\u002FEdstedt_RoMa_Robust_Dense_Feature_Matching_CVPR_2024_paper.html), [Background Matting V2](https:\u002F\u002Farxiv.org\u002Fabs\u002F2012.07810), and [SAM 2](https:\u002F\u002Farxiv.org\u002Fabs\u002F2408.00714). See [COLMAP's citation instructions](https:\u002F\u002Fcolmap.github.io\u002F#citation) for its research references.\n\n## License\n\nOpen4DGS-Core is licensed under the [MIT License](LICENSE), except for separately licensed third-party material. The separate Open4DGS-Trigs project is licensed under [AGPL-3.0](https:\u002F\u002Fgithub.com\u002FASU-NEM-Labs\u002Fopen4dgs-trigs\u002Fblob\u002Fmain\u002FLICENSE), with incorporated code and notices described in its [third-party notices](https:\u002F\u002Fgithub.com\u002FASU-NEM-Labs\u002Fopen4dgs-trigs\u002Fblob\u002Fmain\u002FTHIRD_PARTY_NOTICES.md). Third-party software and model weights retain their own licenses.\n",2,"2026-11-24 04:54:22","CREATED_QUERY"]