Skip to main content

openftgs

CI Coverage Documentation

openftgs is an independent clean-room implementation of FreeTimeGS (Wang et al., CVPR 2025), not affiliated with its authors.

Python package openftgs, under the Apache-2.0 license, with the command-line tool ftgs.

The documentation is at openftgs.readthedocs.io: installation, a quickstart, the datasets, the method, the command line and the API reference.

Status: alpha, version 0.1.0. The first release, at the end of the plan's milestones M0 to M18: the library and its command line are complete, the differential harness checks them, and the method is validated on openftgs-synth, the owner's CC0-1.0 rendered dataset, rather than on the paper's datasets, so no result is compared with the paper's tables. The changelog lists what the release contains and its known limitations.

Clean-room process

The code is written from the paper (arXiv 2506.05348 v2) and from the owner's specification, which was itself written from the paper alone. No code, notebook, checkpoint or issue thread from any other implementation of the method, including the authors' own, is consulted. Third-party software is read only within its license: source code only under permissive licenses that allow commercial use, documentation only for everything else. Every source consulted is logged. The renderer the paper's project page links was read for a documentation-only survey (#352), and nothing from it is in the package.

Installation

pip install openftgs

openftgs needs Python 3.11 or later. Training needs a CUDA build of PyTorch. On Linux x86_64 the default torch wheel on PyPI already is one (torch 2.14.1 bundles the CUDA 13.0 libraries), so the command above installs it. For another CUDA version, or on Windows, install torch from the PyTorch index before installing openftgs. A CPU build is enough for the tests on the reference backend; CI uses one because its runners have no GPU.

Optional extras:

  • [init]: the dependencies of the RoMa-based 4D initialization (torchvision, einops and loguru, and tqdm for the code of XFeat that Tiny RoMa loads, Q-276), and of the four DINO perceptual networks (dinov2_s14, dinov2_b14, dino_s16 and dino_b16 as loss.perc_net), which run on the vendored RoMa's DINOv2 layers: without the extra, building one is an error that names it (Q-248). ꟻLIP, the default perceptual network, HaarPSI and the two Caffe trunks (vgg16_oxford, alexnet_bvlc) need no extra. RoMa's optional speed-up, fused-local-corr (MIT), isn't part of it: every release since 0.3.27 requires one exact torch release (0.3.211 requires torch 2.11.0), so installing one would replace your torch, and the newest unpinned wheel, 0.2.4, built for CUDA 12, doesn't load with torch 2.14.1 (D-85). On Linux, build it from source against the torch you have; this needs the CUDA toolkit (nvcc) and a CUDA build of PyTorch already installed:

    pip install --no-build-isolation git+https://github.com/Parskatt/fused-local-corr@689f2f7303ca0d97ac1f3d1364c732c6d8e889a8
    

    Without it, RoMa runs with its use_custom_corr option off and computes the local correlation in plain PyTorch, which is slower.

  • [fast]: currently empty. The faster SSIM loss uses fused-ssim (MIT), which is not on PyPI. Install it from its repository, at the commit openftgs is tested with; this needs the CUDA toolkit (nvcc) and a CUDA build of PyTorch already installed:

    pip install --no-build-isolation git+https://github.com/rahul-goel/fused-ssim@a7c48d6dd7ac6dc39a7958c7c4452e0b10418f38
    

    Without it, the SSIM loss runs in plain PyTorch and gives the same values.

For development, install from a clone of the repository, with the test and lint tools:

pip install -e .[dev]

The differential harness is a separate package in harness/ (pip install -e harness), which isn't published.

Command line

ftgs convert n3dv SRC OUT                        # a dataset into a scene manifest (needs ffmpeg)
ftgs cache OUT/scene.json                        # decode the training frames once (optional)
ftgs init roma OUT/scene.json init.safetensors   # initial points with RoMa ([init], a CUDA device)
ftgs train OUT/scene.json --init init.safetensors --out RUN_DIR [--config CFG.json] [--seed S]
ftgs train OUT/scene.json --init init.safetensors --out RUN_DIR --resume RUN_DIR/checkpoint
ftgs export RUN_DIR/checkpoint --format ftgs-if --out model.safetensors
ftgs render model.safetensors --request request.json --out renders.safetensors
ftgs eval RUN_DIR/checkpoint OUT/scene.json --split test --out METRICS.json

ftgs <command> --help lists every option. A run directory holds config.json, train_log.jsonl, checkpoint/ and, when the scene has a test split, METRICS.json; Ctrl-C saves the checkpoint before stopping. Exit code 0 is success, 2 an invalid input or environment, 3 a numerical failure. See docs/modules/cli/command-line.md.

Tests

pytest                       # CPU tests; GPU, dataset and weights tests skip when their resource is missing
pytest -n auto --dist loadgroup -m "not gpu"      # the CPU tests on every physical core (Q-214)
pytest -n auto --dist loadgroup -m "not gpu" --cov --cov-report=html   # with coverage, in htmlcov/ (Q-216)
pytest -m gpu                # tests that need a CUDA device
OPENFTGS_DATASETS=/path pytest -m dataset         # converter checks on real datasets
OPENFTGS_ALLOW_DOWNLOADS=1 pytest -m weights      # tests that download pretrained weights
python scripts/license_scan.py                    # GPL, AGPL, non-commercial fail; others need a sign-off in scripts/license_signoff.json

The coverage badge is the CPU and GPU suites' total on a machine with a CUDA device, the dataset and weights tests left out. python scripts/coverage_local.py runs both suites, writes htmlcov/ and coverage.xml, and rewrites docs/coverage.svg when both pass; commit the SVG to update the badge (Q-217). CI's test job runs the CPU suite on Python 3.14 and on 3.11, the oldest Python openftgs supports (Q-1), and reports its coverage in its summary (Q-216).

The license scan passes in CI's environment (CPU torch) and, for this release, in an environment with CUDA torch, whose NVIDIA runtime wheels the owner signed off in scripts/license_signoff.json (the release checklist records each sign-off).

License

Apache-2.0; see LICENSE and NOTICE.

Metadata

Release files for openftgs 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openftgs 0.1.0
File Size Uploaded Provenance Actions
openftgs-0.1.0.tar.gz 703.9 kB Without provenance Details for openftgs-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openftgs 0.1.0
File Interpreter ABI Platform Actions
openftgs-0.1.0-py3-none-any.whl Python 3 none any Details for openftgs-0.1.0-py3-none-any.whl

Total release size: 1.1 MB

Release files / openftgs-0.1.0.tar.gz

Download URL openftgs-0.1.0.tar.gz
Size 703.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0effb652dc020c0a24f223dd658d7c9acf6dfdbae8127b466d862b0b80036580
BLAKE2b-256 checksum
How to use checksums
21983854086a9b53cc06ed93cda23359ad67fe27127c7f76f22abd9348c436cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / openftgs-0.1.0-py3-none-any.whl

Download URL openftgs-0.1.0-py3-none-any.whl
Size 361.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c5237a8a0a16a02cd1ca72705fb35bfd4a1a20b8d08d02ffcc3e5eb4c0ca48f
BLAKE2b-256 checksum
How to use checksums
ed64fec5f1af0baef4ab523e6aad7757362a37c3300bc8b03ed81a7993827e4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for openftgs 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page