openftgs 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- openftgs-0.1.0/LICENSE +201 -0
- openftgs-0.1.0/NOTICE +84 -0
- openftgs-0.1.0/PKG-INFO +143 -0
- openftgs-0.1.0/README.md +89 -0
- openftgs-0.1.0/pyproject.toml +226 -0
- openftgs-0.1.0/setup.cfg +4 -0
- openftgs-0.1.0/src/openftgs/__init__.py +11 -0
- openftgs-0.1.0/src/openftgs/_caffe_trunks.py +161 -0
- openftgs-0.1.0/src/openftgs/_legacy.py +55 -0
- openftgs-0.1.0/src/openftgs/_shards.py +127 -0
- openftgs-0.1.0/src/openftgs/_stages.py +343 -0
- openftgs-0.1.0/src/openftgs/_vendor/__init__.py +15 -0
- openftgs-0.1.0/src/openftgs/_vendor/flip/LICENSE +31 -0
- openftgs-0.1.0/src/openftgs/_vendor/flip/VENDOR.json +71 -0
- openftgs-0.1.0/src/openftgs/_vendor/flip/__init__.py +13 -0
- openftgs-0.1.0/src/openftgs/_vendor/flip/flip_loss.py +770 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/LICENSE +21 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/LICENSES/DINO.txt +201 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/LICENSES/DINOv2.txt +203 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/LICENSES/InLoc.txt +7 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/LICENSES/Kornia.txt +176 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/LICENSES/LoFTR.txt +202 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/LICENSES/Patch2Pix.txt +21 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/LICENSES/timm.txt +201 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/VENDOR.json +254 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/__init__.py +8 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/models/__init__.py +1 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/models/encoders.py +69 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/models/matcher.py +1002 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/models/model_zoo/__init__.py +110 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/models/model_zoo/roma_models.py +400 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/models/tiny.py +305 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/models/transformer/__init__.py +49 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/models/transformer/dinov2.py +359 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/models/transformer/layers/__init__.py +12 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/models/transformer/layers/attention.py +91 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/models/transformer/layers/block.py +246 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/models/transformer/layers/dino_head.py +59 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/models/transformer/layers/drop_path.py +35 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/models/transformer/layers/layer_scale.py +28 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/models/transformer/layers/mlp.py +41 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/models/transformer/layers/patch_embed.py +89 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/models/transformer/layers/swiglu_ffn.py +59 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/utils/__init__.py +14 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/utils/kde.py +13 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/utils/local_correlation.py +143 -0
- openftgs-0.1.0/src/openftgs/_vendor/romatch/utils/utils.py +596 -0
- openftgs-0.1.0/src/openftgs/_weights.py +430 -0
- openftgs-0.1.0/src/openftgs/cli/__init__.py +1342 -0
- openftgs-0.1.0/src/openftgs/cli/__main__.py +8 -0
- openftgs-0.1.0/src/openftgs/cli/_adapter.py +266 -0
- openftgs-0.1.0/src/openftgs/cli/_adapter_forward.py +408 -0
- openftgs-0.1.0/src/openftgs/cli/_bench.py +3062 -0
- openftgs-0.1.0/src/openftgs/config.py +775 -0
- openftgs-0.1.0/src/openftgs/data.py +2946 -0
- openftgs-0.1.0/src/openftgs/density.py +1052 -0
- openftgs-0.1.0/src/openftgs/eval.py +913 -0
- openftgs-0.1.0/src/openftgs/init.py +1098 -0
- openftgs-0.1.0/src/openftgs/io.py +1793 -0
- openftgs-0.1.0/src/openftgs/losses.py +847 -0
- openftgs-0.1.0/src/openftgs/model.py +837 -0
- openftgs-0.1.0/src/openftgs/motion.py +516 -0
- openftgs-0.1.0/src/openftgs/optim.py +628 -0
- openftgs-0.1.0/src/openftgs/py.typed +0 -0
- openftgs-0.1.0/src/openftgs/render.py +1335 -0
- openftgs-0.1.0/src/openftgs/sh.py +170 -0
- openftgs-0.1.0/src/openftgs/train.py +1486 -0
- openftgs-0.1.0/src/openftgs/types.py +563 -0
- openftgs-0.1.0/src/openftgs.egg-info/PKG-INFO +143 -0
- openftgs-0.1.0/src/openftgs.egg-info/SOURCES.txt +122 -0
- openftgs-0.1.0/src/openftgs.egg-info/dependency_links.txt +1 -0
- openftgs-0.1.0/src/openftgs.egg-info/entry_points.txt +3 -0
- openftgs-0.1.0/src/openftgs.egg-info/requires.txt +27 -0
- openftgs-0.1.0/src/openftgs.egg-info/top_level.txt +1 -0
- openftgs-0.1.0/tests/test_bench.py +2808 -0
- openftgs-0.1.0/tests/test_bench_compare.py +282 -0
- openftgs-0.1.0/tests/test_bench_median.py +271 -0
- openftgs-0.1.0/tests/test_bundled_libs.py +198 -0
- openftgs-0.1.0/tests/test_caffe_trunks.py +307 -0
- openftgs-0.1.0/tests/test_ci_scene.py +106 -0
- openftgs-0.1.0/tests/test_clean_room_guard.py +162 -0
- openftgs-0.1.0/tests/test_cli.py +3018 -0
- openftgs-0.1.0/tests/test_config.py +497 -0
- openftgs-0.1.0/tests/test_convert.py +794 -0
- openftgs-0.1.0/tests/test_converter_checks.py +481 -0
- openftgs-0.1.0/tests/test_coverage_local.py +65 -0
- openftgs-0.1.0/tests/test_crop_scene.py +135 -0
- openftgs-0.1.0/tests/test_data.py +425 -0
- openftgs-0.1.0/tests/test_data_cameras.py +163 -0
- openftgs-0.1.0/tests/test_data_images.py +319 -0
- openftgs-0.1.0/tests/test_density.py +1555 -0
- openftgs-0.1.0/tests/test_docs_and_ci_config.py +202 -0
- openftgs-0.1.0/tests/test_docs_method.py +104 -0
- openftgs-0.1.0/tests/test_environment.py +28 -0
- openftgs-0.1.0/tests/test_eval.py +999 -0
- openftgs-0.1.0/tests/test_frame_cache.py +257 -0
- openftgs-0.1.0/tests/test_gt_depth.py +288 -0
- openftgs-0.1.0/tests/test_init.py +1787 -0
- openftgs-0.1.0/tests/test_io.py +1899 -0
- openftgs-0.1.0/tests/test_license_scan.py +216 -0
- openftgs-0.1.0/tests/test_losses.py +1393 -0
- openftgs-0.1.0/tests/test_markers.py +140 -0
- openftgs-0.1.0/tests/test_model.py +1136 -0
- openftgs-0.1.0/tests/test_motion.py +651 -0
- openftgs-0.1.0/tests/test_no_runtime_change.py +173 -0
- openftgs-0.1.0/tests/test_optim.py +715 -0
- openftgs-0.1.0/tests/test_reference_flaws.py +400 -0
- openftgs-0.1.0/tests/test_render.py +1505 -0
- openftgs-0.1.0/tests/test_render_gsplat.py +1337 -0
- openftgs-0.1.0/tests/test_reserve_trace.py +90 -0
- openftgs-0.1.0/tests/test_run_summary.py +358 -0
- openftgs-0.1.0/tests/test_sh.py +182 -0
- openftgs-0.1.0/tests/test_skeleton.py +303 -0
- openftgs-0.1.0/tests/test_stages.py +355 -0
- openftgs-0.1.0/tests/test_synchronization.py +329 -0
- openftgs-0.1.0/tests/test_synth_scripts.py +172 -0
- openftgs-0.1.0/tests/test_synthetic_conversion.py +713 -0
- openftgs-0.1.0/tests/test_temporal_slice.py +265 -0
- openftgs-0.1.0/tests/test_train.py +2018 -0
- openftgs-0.1.0/tests/test_types.py +223 -0
- openftgs-0.1.0/tests/test_vendored_flip.py +363 -0
- openftgs-0.1.0/tests/test_vendored_roma.py +304 -0
- openftgs-0.1.0/tests/test_view_renders.py +374 -0
- openftgs-0.1.0/tests/test_weights.py +504 -0
openftgs-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
openftgs-0.1.0/NOTICE
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
openftgs
|
|
2
|
+
Copyright 2026 Samuel Austin
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
Third-party software
|
|
6
|
+
--------------------
|
|
7
|
+
|
|
8
|
+
openftgs includes a copy of RoMa's inference code in the package openftgs._vendor.romatch
|
|
9
|
+
(folder openftgs/_vendor/romatch). The license texts named below sit in that folder: RoMa's
|
|
10
|
+
as LICENSE, the others in its LICENSES folder. Its VENDOR.json records the upstream commit,
|
|
11
|
+
the SHA-256 of every file and license text, and how each file was changed; every changed file
|
|
12
|
+
carries a modification notice.
|
|
13
|
+
|
|
14
|
+
RoMa (https://github.com/Parskatt/RoMa), commit 77f8d68803526dcddfd9b7a46bc76125bdc25f15
|
|
15
|
+
Copyright (c) 2023 Johan Edstedt
|
|
16
|
+
Licensed under the MIT License (LICENSE).
|
|
17
|
+
|
|
18
|
+
The DINOv2 layers in RoMa's models/transformer (https://github.com/facebookresearch/dinov2)
|
|
19
|
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
20
|
+
Licensed under the Apache License, Version 2.0 (LICENSES/DINOv2.txt). DINOv2 has no NOTICE
|
|
21
|
+
file. Their file headers reference:
|
|
22
|
+
- DINO (https://github.com/facebookresearch/dino), licensed under the Apache License,
|
|
23
|
+
Version 2.0 (LICENSES/DINO.txt);
|
|
24
|
+
- timm (https://github.com/huggingface/pytorch-image-models), Copyright 2019 Ross Wightman,
|
|
25
|
+
licensed under the Apache License, Version 2.0 (LICENSES/timm.txt).
|
|
26
|
+
|
|
27
|
+
Patch2Pix (https://github.com/GrumpyZhou/patch2pix), credited in RoMa's utils/utils.py
|
|
28
|
+
Copyright (c) 2020 Qunjie Zhou
|
|
29
|
+
Licensed under the MIT License (LICENSES/Patch2Pix.txt).
|
|
30
|
+
|
|
31
|
+
LoFTR (https://github.com/zju3dv/LoFTR), from which RoMa's utils/utils.py adapts code
|
|
32
|
+
Licensed under the Apache License, Version 2.0 (LICENSES/LoFTR.txt).
|
|
33
|
+
|
|
34
|
+
Kornia (https://github.com/kornia/kornia), named as a precaution for the epipolar-distance
|
|
35
|
+
helpers in RoMa's utils/utils.py, which import kornia
|
|
36
|
+
Licensed under the Apache License, Version 2.0 (LICENSES/Kornia.txt).
|
|
37
|
+
|
|
38
|
+
InLoc (https://github.com/HajimeTaira/InLoc_demo), whose approach RoMa's utils/utils.py credits
|
|
39
|
+
Copyright (c) 2017 Hajime Taira
|
|
40
|
+
Licensed under the MIT License (LICENSES/InLoc.txt).
|
|
41
|
+
|
|
42
|
+
openftgs includes a copy of NVIDIA's ꟻLIP loss in the module openftgs._vendor.flip.flip_loss
|
|
43
|
+
(folder openftgs/_vendor/flip), with changes that the file marks and its VENDOR.json lists, and
|
|
44
|
+
its tests include the unmodified file as a reference (folder tests/reference/flip). Both folders
|
|
45
|
+
hold ꟻLIP's license as LICENSE.
|
|
46
|
+
|
|
47
|
+
ꟻLIP (https://github.com/NVlabs/flip), commit d3ab02a4425eb167d8a4021b382a2bafc6e6c838,
|
|
48
|
+
src/pytorch/flip_loss.py
|
|
49
|
+
Copyright (c) 2020-2025, NVIDIA CORPORATION & AFFILIATES (the file's own header reads
|
|
50
|
+
2020-2024). All rights reserved.
|
|
51
|
+
Licensed under the BSD 3-Clause License (LICENSE).
|
|
52
|
+
|
|
53
|
+
openftgs adapts piq's HaarPSI in the module openftgs.losses (the functions _haarpsi_constants,
|
|
54
|
+
_similarity and _haarpsi), with the changes its comments list.
|
|
55
|
+
|
|
56
|
+
piq (https://github.com/photosynthesis-team/piq), version 0.8.0, piq/haarpsi.py and the helpers
|
|
57
|
+
it calls (piq/functional/colour_conversion.py, piq/functional/filters.py, piq/functional/base.py)
|
|
58
|
+
By Sergey Kastryulin and the piq contributors (the package's metadata names its author; its
|
|
59
|
+
license file names no copyright holder, and it has no NOTICE file).
|
|
60
|
+
Licensed under the Apache License, Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0).
|
|
61
|
+
|
|
62
|
+
The documentation site's template docs/_templates/autosummary/module.rst (in the source
|
|
63
|
+
repository only; neither the sdist nor the wheel holds it) follows the layout of Sphinx's
|
|
64
|
+
autosummary/module.rst; its header comment carries Sphinx's license in full.
|
|
65
|
+
|
|
66
|
+
Sphinx (https://www.sphinx-doc.org/), version 9.2.0,
|
|
67
|
+
sphinx/ext/autosummary/templates/autosummary/module.rst
|
|
68
|
+
Copyright (c) 2007-2026 by the Sphinx team (see AUTHORS file). All rights reserved.
|
|
69
|
+
Licensed under the BSD 2-Clause License.
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
Pretrained weights
|
|
73
|
+
------------------
|
|
74
|
+
|
|
75
|
+
openftgs downloads the pretrained weights of its trunk perceptual networks from their
|
|
76
|
+
publishers at first use; it neither includes nor redistributes them.
|
|
77
|
+
|
|
78
|
+
The perceptual network vgg16_oxford uses the 16-layer VGG model of the Visual Geometry Group,
|
|
79
|
+
University of Oxford, from its Caffe release
|
|
80
|
+
(https://www.robots.ox.ac.uk/~vgg/research/very_deep/), whose convolutions openftgs converts
|
|
81
|
+
into the user's torch.hub cache at first use. The model is licensed under the Creative Commons
|
|
82
|
+
Attribution 4.0 International License (https://creativecommons.org/licenses/by/4.0/), with
|
|
83
|
+
attribution to its technical report: Karen Simonyan and Andrew Zisserman, "Very Deep
|
|
84
|
+
Convolutional Networks for Large-Scale Image Recognition", arXiv:1409.1556 (2014).
|
openftgs-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: openftgs
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: An independent clean-room implementation of FreeTimeGS (Wang et al., CVPR 2025), not affiliated with its authors.
|
|
5
|
+
Author: Samuel Austin
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/samaust/openftgs
|
|
8
|
+
Project-URL: Source, https://github.com/samaust/openftgs
|
|
9
|
+
Project-URL: Documentation, https://openftgs.readthedocs.io
|
|
10
|
+
Project-URL: Issues, https://github.com/samaust/openftgs/issues
|
|
11
|
+
Project-URL: Changelog, https://github.com/samaust/openftgs/blob/main/docs/changelog.md
|
|
12
|
+
Keywords: gaussian-splatting,dynamic-scene-reconstruction,novel-view-synthesis,multi-view-video,4d-reconstruction,pytorch
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Environment :: GPU :: NVIDIA CUDA
|
|
15
|
+
Classifier: Intended Audience :: Science/Research
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
23
|
+
Classifier: Topic :: Scientific/Engineering :: Image Processing
|
|
24
|
+
Classifier: Typing :: Typed
|
|
25
|
+
Requires-Python: >=3.11
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
License-File: LICENSE
|
|
28
|
+
License-File: NOTICE
|
|
29
|
+
Requires-Dist: gsplat==1.5.3
|
|
30
|
+
Requires-Dist: torch>=2.1
|
|
31
|
+
Requires-Dist: safetensors>=0.4
|
|
32
|
+
Requires-Dist: PyYAML>=6.0
|
|
33
|
+
Requires-Dist: Pillow>=10
|
|
34
|
+
Requires-Dist: scipy>=1.10
|
|
35
|
+
Requires-Dist: numpy>=1.23.2
|
|
36
|
+
Provides-Extra: init
|
|
37
|
+
Requires-Dist: torch>=2.5.1; extra == "init"
|
|
38
|
+
Requires-Dist: torchvision; extra == "init"
|
|
39
|
+
Requires-Dist: einops; extra == "init"
|
|
40
|
+
Requires-Dist: loguru; extra == "init"
|
|
41
|
+
Requires-Dist: tqdm>=4.70.1; extra == "init"
|
|
42
|
+
Provides-Extra: fast
|
|
43
|
+
Provides-Extra: dev
|
|
44
|
+
Requires-Dist: pytest; extra == "dev"
|
|
45
|
+
Requires-Dist: pytest-xdist; extra == "dev"
|
|
46
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
47
|
+
Requires-Dist: hypothesis; extra == "dev"
|
|
48
|
+
Requires-Dist: ruff; extra == "dev"
|
|
49
|
+
Requires-Dist: mypy; extra == "dev"
|
|
50
|
+
Requires-Dist: pip-licenses; extra == "dev"
|
|
51
|
+
Requires-Dist: scikit-image; extra == "dev"
|
|
52
|
+
Requires-Dist: opencv-python-headless; extra == "dev"
|
|
53
|
+
Dynamic: license-file
|
|
54
|
+
|
|
55
|
+
# openftgs
|
|
56
|
+
|
|
57
|
+
[](https://github.com/samaust/openftgs/actions/workflows/ci.yml) [](#tests) [](https://openftgs.readthedocs.io)
|
|
58
|
+
|
|
59
|
+
openftgs is an independent clean-room implementation of FreeTimeGS (Wang et al., CVPR 2025), not affiliated with its authors.
|
|
60
|
+
|
|
61
|
+
Python package `openftgs`, under the Apache-2.0 license, with the command-line tool `ftgs`.
|
|
62
|
+
|
|
63
|
+
The documentation is at [openftgs.readthedocs.io](https://openftgs.readthedocs.io): installation, a quickstart, the datasets, the method, the command line and the API reference.
|
|
64
|
+
|
|
65
|
+
**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](https://github.com/samaust/openftgs/blob/main/docs/changelog.md) lists what the release contains and its known limitations.
|
|
66
|
+
|
|
67
|
+
## Clean-room process
|
|
68
|
+
|
|
69
|
+
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](https://github.com/samaust/openftgs/issues/352)), and nothing from it is in the package.
|
|
70
|
+
|
|
71
|
+
- [`docs/spec/openftgs-spec.md`](https://github.com/samaust/openftgs/blob/main/docs/spec/openftgs-spec.md): the specification, the source of truth for the implementation.
|
|
72
|
+
- [`docs/clean-room/source-log.md`](https://github.com/samaust/openftgs/blob/main/docs/clean-room/source-log.md): every source consulted during the implementation and what was taken from it.
|
|
73
|
+
- [`docs/clean-room/questions.md`](https://github.com/samaust/openftgs/blob/main/docs/clean-room/questions.md): gaps found in the spec and the provisional decisions made for them. GitHub doesn't render a Markdown file of this size, so it may show only the source; the [raw file](https://github.com/samaust/openftgs/raw/main/docs/clean-room/questions.md) opens as plain text.
|
|
74
|
+
- [`docs/clean-room/milestones.md`](https://github.com/samaust/openftgs/blob/main/docs/clean-room/milestones.md): the order in which the package was built.
|
|
75
|
+
- [`docs/clean-room/release-checklist.md`](https://github.com/samaust/openftgs/blob/main/docs/clean-room/release-checklist.md): the release-time checks of this version: the license scan, the libraries bundled in dependency wheels, the vendored code's license files, the pretrained weights' terms, the absence of dataset material, and the source-log audit.
|
|
76
|
+
|
|
77
|
+
## Installation
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
pip install openftgs
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
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](https://pytorch.org/get-started/locally/) before installing openftgs. A CPU build is enough for the tests on the reference backend; CI uses one because its runners have no GPU.
|
|
84
|
+
|
|
85
|
+
Optional extras:
|
|
86
|
+
|
|
87
|
+
- `[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](https://github.com/Parskatt/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:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
pip install --no-build-isolation git+https://github.com/Parskatt/fused-local-corr@689f2f7303ca0d97ac1f3d1364c732c6d8e889a8
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Without it, RoMa runs with its `use_custom_corr` option off and computes the local correlation in plain PyTorch, which is slower.
|
|
94
|
+
- `[fast]`: currently empty. The faster SSIM loss uses [fused-ssim](https://github.com/rahul-goel/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:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
pip install --no-build-isolation git+https://github.com/rahul-goel/fused-ssim@a7c48d6dd7ac6dc39a7958c7c4452e0b10418f38
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Without it, the SSIM loss runs in plain PyTorch and gives the same values.
|
|
101
|
+
|
|
102
|
+
For development, install from a clone of the repository, with the test and lint tools:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
pip install -e .[dev]
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
The differential harness is a separate package in `harness/` (`pip install -e harness`), which isn't published.
|
|
109
|
+
|
|
110
|
+
## Command line
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
ftgs convert n3dv SRC OUT # a dataset into a scene manifest (needs ffmpeg)
|
|
114
|
+
ftgs cache OUT/scene.json # decode the training frames once (optional)
|
|
115
|
+
ftgs init roma OUT/scene.json init.safetensors # initial points with RoMa ([init], a CUDA device)
|
|
116
|
+
ftgs train OUT/scene.json --init init.safetensors --out RUN_DIR [--config CFG.json] [--seed S]
|
|
117
|
+
ftgs train OUT/scene.json --init init.safetensors --out RUN_DIR --resume RUN_DIR/checkpoint
|
|
118
|
+
ftgs export RUN_DIR/checkpoint --format ftgs-if --out model.safetensors
|
|
119
|
+
ftgs render model.safetensors --request request.json --out renders.safetensors
|
|
120
|
+
ftgs eval RUN_DIR/checkpoint OUT/scene.json --split test --out METRICS.json
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
`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`](https://github.com/samaust/openftgs/blob/main/docs/modules/cli/command-line.md).
|
|
124
|
+
|
|
125
|
+
## Tests
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
pytest # CPU tests; GPU, dataset and weights tests skip when their resource is missing
|
|
129
|
+
pytest -n auto --dist loadgroup -m "not gpu" # the CPU tests on every physical core (Q-214)
|
|
130
|
+
pytest -n auto --dist loadgroup -m "not gpu" --cov --cov-report=html # with coverage, in htmlcov/ (Q-216)
|
|
131
|
+
pytest -m gpu # tests that need a CUDA device
|
|
132
|
+
OPENFTGS_DATASETS=/path pytest -m dataset # converter checks on real datasets
|
|
133
|
+
OPENFTGS_ALLOW_DOWNLOADS=1 pytest -m weights # tests that download pretrained weights
|
|
134
|
+
python scripts/license_scan.py # GPL, AGPL, non-commercial fail; others need a sign-off in scripts/license_signoff.json
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
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).
|
|
138
|
+
|
|
139
|
+
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).
|
|
140
|
+
|
|
141
|
+
## License
|
|
142
|
+
|
|
143
|
+
Apache-2.0; see [LICENSE](https://github.com/samaust/openftgs/blob/main/LICENSE) and [NOTICE](https://github.com/samaust/openftgs/blob/main/NOTICE).
|
openftgs-0.1.0/README.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# openftgs
|
|
2
|
+
|
|
3
|
+
[](https://github.com/samaust/openftgs/actions/workflows/ci.yml) [](#tests) [](https://openftgs.readthedocs.io)
|
|
4
|
+
|
|
5
|
+
openftgs is an independent clean-room implementation of FreeTimeGS (Wang et al., CVPR 2025), not affiliated with its authors.
|
|
6
|
+
|
|
7
|
+
Python package `openftgs`, under the Apache-2.0 license, with the command-line tool `ftgs`.
|
|
8
|
+
|
|
9
|
+
The documentation is at [openftgs.readthedocs.io](https://openftgs.readthedocs.io): installation, a quickstart, the datasets, the method, the command line and the API reference.
|
|
10
|
+
|
|
11
|
+
**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](https://github.com/samaust/openftgs/blob/main/docs/changelog.md) lists what the release contains and its known limitations.
|
|
12
|
+
|
|
13
|
+
## Clean-room process
|
|
14
|
+
|
|
15
|
+
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](https://github.com/samaust/openftgs/issues/352)), and nothing from it is in the package.
|
|
16
|
+
|
|
17
|
+
- [`docs/spec/openftgs-spec.md`](https://github.com/samaust/openftgs/blob/main/docs/spec/openftgs-spec.md): the specification, the source of truth for the implementation.
|
|
18
|
+
- [`docs/clean-room/source-log.md`](https://github.com/samaust/openftgs/blob/main/docs/clean-room/source-log.md): every source consulted during the implementation and what was taken from it.
|
|
19
|
+
- [`docs/clean-room/questions.md`](https://github.com/samaust/openftgs/blob/main/docs/clean-room/questions.md): gaps found in the spec and the provisional decisions made for them. GitHub doesn't render a Markdown file of this size, so it may show only the source; the [raw file](https://github.com/samaust/openftgs/raw/main/docs/clean-room/questions.md) opens as plain text.
|
|
20
|
+
- [`docs/clean-room/milestones.md`](https://github.com/samaust/openftgs/blob/main/docs/clean-room/milestones.md): the order in which the package was built.
|
|
21
|
+
- [`docs/clean-room/release-checklist.md`](https://github.com/samaust/openftgs/blob/main/docs/clean-room/release-checklist.md): the release-time checks of this version: the license scan, the libraries bundled in dependency wheels, the vendored code's license files, the pretrained weights' terms, the absence of dataset material, and the source-log audit.
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
pip install openftgs
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
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](https://pytorch.org/get-started/locally/) before installing openftgs. A CPU build is enough for the tests on the reference backend; CI uses one because its runners have no GPU.
|
|
30
|
+
|
|
31
|
+
Optional extras:
|
|
32
|
+
|
|
33
|
+
- `[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](https://github.com/Parskatt/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:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install --no-build-isolation git+https://github.com/Parskatt/fused-local-corr@689f2f7303ca0d97ac1f3d1364c732c6d8e889a8
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Without it, RoMa runs with its `use_custom_corr` option off and computes the local correlation in plain PyTorch, which is slower.
|
|
40
|
+
- `[fast]`: currently empty. The faster SSIM loss uses [fused-ssim](https://github.com/rahul-goel/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:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pip install --no-build-isolation git+https://github.com/rahul-goel/fused-ssim@a7c48d6dd7ac6dc39a7958c7c4452e0b10418f38
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Without it, the SSIM loss runs in plain PyTorch and gives the same values.
|
|
47
|
+
|
|
48
|
+
For development, install from a clone of the repository, with the test and lint tools:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
pip install -e .[dev]
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
The differential harness is a separate package in `harness/` (`pip install -e harness`), which isn't published.
|
|
55
|
+
|
|
56
|
+
## Command line
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
ftgs convert n3dv SRC OUT # a dataset into a scene manifest (needs ffmpeg)
|
|
60
|
+
ftgs cache OUT/scene.json # decode the training frames once (optional)
|
|
61
|
+
ftgs init roma OUT/scene.json init.safetensors # initial points with RoMa ([init], a CUDA device)
|
|
62
|
+
ftgs train OUT/scene.json --init init.safetensors --out RUN_DIR [--config CFG.json] [--seed S]
|
|
63
|
+
ftgs train OUT/scene.json --init init.safetensors --out RUN_DIR --resume RUN_DIR/checkpoint
|
|
64
|
+
ftgs export RUN_DIR/checkpoint --format ftgs-if --out model.safetensors
|
|
65
|
+
ftgs render model.safetensors --request request.json --out renders.safetensors
|
|
66
|
+
ftgs eval RUN_DIR/checkpoint OUT/scene.json --split test --out METRICS.json
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
`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`](https://github.com/samaust/openftgs/blob/main/docs/modules/cli/command-line.md).
|
|
70
|
+
|
|
71
|
+
## Tests
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
pytest # CPU tests; GPU, dataset and weights tests skip when their resource is missing
|
|
75
|
+
pytest -n auto --dist loadgroup -m "not gpu" # the CPU tests on every physical core (Q-214)
|
|
76
|
+
pytest -n auto --dist loadgroup -m "not gpu" --cov --cov-report=html # with coverage, in htmlcov/ (Q-216)
|
|
77
|
+
pytest -m gpu # tests that need a CUDA device
|
|
78
|
+
OPENFTGS_DATASETS=/path pytest -m dataset # converter checks on real datasets
|
|
79
|
+
OPENFTGS_ALLOW_DOWNLOADS=1 pytest -m weights # tests that download pretrained weights
|
|
80
|
+
python scripts/license_scan.py # GPL, AGPL, non-commercial fail; others need a sign-off in scripts/license_signoff.json
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
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).
|
|
84
|
+
|
|
85
|
+
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).
|
|
86
|
+
|
|
87
|
+
## License
|
|
88
|
+
|
|
89
|
+
Apache-2.0; see [LICENSE](https://github.com/samaust/openftgs/blob/main/LICENSE) and [NOTICE](https://github.com/samaust/openftgs/blob/main/NOTICE).
|