Computational Displays
Is there a good resource for classifying existing Augmented Reality glasses?
Using your favorite search engine, investigate if there is a reliable up-to-date table that helps comparing existing Augmented Reality glasses in terms of functionality and technical capabilities (e.g., field-of-View, resolution, focus cues).
Complex-valued Gaussian splatting for holography¶
Informative · Practical
Traditional 3D Gaussian Splatting represents a scene as a collection of 3D Gaussian primitives, each with a mean position, covariance (orientation and scale), colour, and opacity. These Gaussians are "splatted" onto the image plane by projecting their 3D covariance into 2D and alpha-compositing them in depth order to produce a rendered image. Complex-valued Gaussian splatting extends this idea to holographic rendering. Instead of compositing real-valued colours, each Gaussian carries a complex amplitude and a phase. When splatted, the contributions are summed as complex fields, and the resulting field is propagated to the hologram plane using the band-limited angular spectrum method. This produces a complex hologram that encodes both amplitude and phase information suitable for driving a holographic display.
odak provides a pure PyTorch implementation of this pipeline in odak.learn.wave.complex_gaussians, free of any external dependencies beyond PyTorch itself.
The key classes are:
Gaussians: Stores and manages the 3D Gaussian primitives (means, quaternion rotations, scales, colours, phases, opacities, and plane assignments).Scene: Combines a set ofGaussianswith a camera to render complex holograms via tile-based splatting and angular spectrum propagation.PerspectiveCamera: A lightweight camera model available fromodak.learn.toolsthat stores rotation, translation, focal length, and principal point.
How does complex Gaussian splatting differ from standard Gaussian splatting?
In standard 3D Gaussian splatting, Gaussians are alpha-composited to produce real-valued pixel colours. In the complex-valued variant, each Gaussian contributes a complex field \(A \cdot e^{i\phi}\), where \(A\) is the amplitude (derived from colour and opacity) and \(\phi\) is a learned phase. The key equations remain similar for projection (3D covariance to 2D covariance), but the rendering step sums complex contributions rather than blending colours. The summed complex field is then propagated to the hologram plane using band-limited angular spectrum propagation to generate a hologram.
What is band-limited angular spectrum propagation?
The angular spectrum method propagates a 2D complex field by a distance \(d\) through free space. In the frequency domain, propagation amounts to multiplying the field's Fourier transform by a transfer function:
where \(k = 2\pi / \lambda\) is the wavenumber. The "band-limited" variant applies a frequency mask to avoid aliasing artefacts from evanescent waves, ensuring physically accurate results.
Usage example¶
The script below demonstrates how to initialise a set of random complex Gaussians, set up a camera, render a hologram, and visualise the result. We keep the example brief so that first-time readers can follow each step.
import sys
import torch
from argparse import Namespace
import odak
def main():
# 1. Define scene parameters.
num_points = 128 # number of Gaussian primitives
num_planes = 1 # number of hologram planes
img_size = (64, 64) # rendered image resolution (W, H)
wavelengths = [633e-9] # red laser wavelength in metres
args = Namespace(
num_planes=num_planes,
wavelengths=wavelengths,
pixel_pitch=8e-6, # 8 micron pixel pitch
distances=[0.02], # propagation distance to hologram plane
pad_size=list(img_size),
aperture_size=-1, # no aperture
)
# 2. Create randomly initialised Gaussians.
# We place them in a small box in front of the camera
# so they project within the image.
from odak.learn.wave.complex_gaussians import Gaussians, Scene
gaussians = Gaussians(
init_type="random",
device="cpu",
num_points=num_points,
args_prop=args,
)
# Override positions to a visible volume in front of the camera.
with torch.no_grad():
gaussians.means.data = torch.rand(num_points, 3) * 0.2 - 0.1 # (1)
gaussians.means.data[:, 2] = gaussians.means.data[:, 2].abs() + 2.0
print(f"Initialised {len(gaussians)} Gaussians")
# 3. Set up a perspective camera looking at the origin.
from odak.learn.tools import PerspectiveCamera
camera = PerspectiveCamera(
R=torch.eye(3).unsqueeze(0),
T=torch.tensor([[0.0, 0.0, 0.0]]),
focal_length=torch.tensor([500.0, 500.0]),
principal_point=torch.tensor([32.0, 32.0]),
)
# 4. Create a Scene and render the hologram.
scene = Scene(gaussians, args)
hologram, plane_field = scene.render(
camera=camera,
img_size=img_size,
tile_size=(32, 32),
)
print(f"Hologram shape: {hologram.shape}, dtype: {hologram.dtype}")
# 5. Extract amplitude and phase from the complex hologram.
amplitude = odak.learn.wave.calculate_amplitude(hologram[0])
phase = odak.learn.wave.calculate_phase(hologram[0])
# 6. Visualise the results.
positions = gaussians.means.detach().cpu().numpy()
colors = gaussians.colours.detach().cpu().numpy()
visualize = True
if visualize:
# 3D point cloud of Gaussian positions.
diagram = odak.visualize.plotly.rayshow(
columns=1,
marker_size=5.0,
subplot_titles=["<b>Gaussian positions</b>"],
)
diagram.add_point(positions, color=colors, column=1)
diagram.show()
# Hologram amplitude and phase as 2D images.
amplitude_image = amplitude.detach().unsqueeze(0).unsqueeze(0)
phase_image = phase.detach().unsqueeze(0).unsqueeze(0)
detector_amp = odak.visualize.plotly.detectorshow()
detector_amp.add_field(amplitude_image)
detector_amp.show()
detector_phase = odak.visualize.plotly.detectorshow()
detector_phase.add_field(phase_image)
detector_phase.show()
assert hologram.shape[0] == len(wavelengths)
print("Done.")
if __name__ == "__main__":
sys.exit(main())
- Positions are overridden to a small box (x, y in [-0.1, 0.1], z in [2.0, 2.2]) so that they fall within the camera frustum and produce a visible hologram. With
focal_length=500andprincipal_point=(32, 32), these Gaussians project near the center of the 64×64 image.
The code above follows a simple pipeline:
- Define parameters – number of Gaussians, image size, wavelength, pixel pitch, and propagation distance.
- Initialise Gaussians –
Gaussians(init_type="random", ...)creates randomly placed primitives with random colours, phases, and opacities. - Set up the camera –
PerspectiveCamerafromodak.learn.toolsdefines the view with rotation, translation, focal length, and principal point. - Render –
Scene.render()performs depth-sorted tile-based splatting followed by band-limited angular spectrum propagation to produce a complex hologram. - Analyse –
odak.learn.wave.calculate_amplitudeandodak.learn.wave.calculate_phaseextract the amplitude and phase from the complex field.
Let us also examine the key classes provided in odak for this pipeline.
Bases: Module
Complex-valued 3-D Gaussian primitives for holographic rendering.
Each Gaussian is parameterised by a 3-D mean, a rotation quaternion, log-scales, per-channel colour amplitudes, per-channel phases, opacity, and a discrete plane-assignment vector.
Parameters:
-
init_type(str) –One of ``"gaussians"`` (load from checkpoint), ``"random"`` (random initialisation), or ``"point"`` (from a point cloud). -
device(str) –Torch device string, e.g. ``"cuda:0"`` or ``"cpu"``. -
load_path(Optional[str], default:None) –Path to a ``.pth`` checkpoint (required when ``init_type="gaussians"``). -
num_points(Optional[int], default:None) –Number of Gaussians (required when ``init_type="random"``). -
args_prop(Namespace, default:None) –Must contain at least ``num_planes``. -
pointcloud_data(Optional[dict], default:None) –``{"positions": Tensor, "colors": Tensor}`` (required when ``init_type="point"``). -
generate_dense_point(int, default:False) –Number of densification rounds (default: ``0``). -
densepoint_scatter–Standard deviation of the densification noise (default: ``0.01``). -
img_size–Image size for random init hints.
Source code in odak/learn/wave/complex_gaussians.py
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 | |
apply_activations(pre_act_quats, pre_act_scales, pre_act_phase=None, pre_act_opacities=None, pre_act_plane_assignment=None, step=None, max_step=None)
staticmethod
¶
Apply non-linear activations to raw Gaussian parameters.
Parameters:
-
pre_act_quats– -
pre_act_scales– -
pre_act_phase– -
pre_act_opacities– -
pre_act_plane_assignment(Tensor or None, default:None) – -
step– -
max_step–
Returns:
-
quats, scales, phase, opacities, plane_probs : torch.Tensor–
Source code in odak/learn/wave/complex_gaussians.py
calculate_gaussian_bounds(means_2D, cov_2D, img_size, confidence=3.0)
staticmethod
¶
Compute axis-aligned bounding boxes from 2-D covariance.
Parameters:
-
means_2D–2-D positions ``(N, 2)``. -
cov_2D–Covariance matrices ``(N, 2, 2)``. -
img_size–``(W, H)``. -
confidence(float, default:3.0) –Number of standard deviations (default: ``3.0``).
Returns:
-
bounds(Tensor) –(N, 4)with[min_x, min_y, max_x, max_y].
Source code in odak/learn/wave/complex_gaussians.py
check_if_trainable()
¶
Raise an exception if any learnable parameter has requires_grad=False.
Source code in odak/learn/wave/complex_gaussians.py
compute_cov_2D(cam_means_3D, quats, scales, fx, fy, R, img_size)
¶
Compute 2-D projected covariance matrices (Eq. 5 of 3DGS paper).
Parameters:
-
cam_means_3D(Tensor) –Camera-space means ``(N, 3)``. -
quats(Tensor) –Quaternions ``(N, 4)``. -
scales(Tensor) –Scales ``(N, 3)``. -
fx–Focal lengths. -
fy–Focal lengths. -
R–View rotation matrix. -
img_size(Tuple) –``(W, H)``.
Returns:
-
cov_2D(Tensor) –2-D covariance matrices
(N, 2, 2).
References
Kerbl, B. et al. "3D Gaussian Splatting for Real-Time Radiance Field Rendering." SIGGRAPH 2023.
Source code in odak/learn/wave/complex_gaussians.py
compute_cov_3D(quats, scales)
¶
Compute 3-D covariance matrices from quaternions and scales.
Parameters:
-
quats(Tensor) –Unit quaternions ``(N, 4)`` in ``(w, x, y, z)`` convention. -
scales(Tensor) –Scale vectors ``(N, 3)``.
Returns:
-
cov_3D(Tensor) –Covariance matrices
(N, 3, 3).
Source code in odak/learn/wave/complex_gaussians.py
compute_means_2D(cam_means_3D, fx, fy, px, py)
¶
Project 3-D camera-space points to 2-D pixel coordinates.
Parameters:
-
cam_means_3D(Tensor) –Camera-space means ``(N, 3)``. -
fx–Focal lengths. -
fy–Focal lengths. -
px–Principal-point offsets. -
py–Principal-point offsets.
Returns:
-
means_2D(Tensor) –2-D pixel coordinates
(N, 2).
Source code in odak/learn/wave/complex_gaussians.py
invert_cov_2D(cov_2D)
staticmethod
¶
Invert 2×2 covariance matrices.
Parameters:
-
cov_2D(Tensor) –Covariance matrices ``(N, 2, 2)``.
Returns:
-
cov_2D_inverse(Tensor) –Inverse covariance matrices
(N, 2, 2).
Source code in odak/learn/wave/complex_gaussians.py
save_gaussians(save_path)
¶
Save Gaussian parameters to a .pth checkpoint.
Parameters:
-
save_path(str) –Destination file path.
Source code in odak/learn/wave/complex_gaussians.py
Wave-based rendering scene for complex-valued Gaussian splatting.
Combines a set of :class:Gaussians with a camera model to produce
holographic fields via tile-based splatting and band-limited
angular-spectrum propagation.
Parameters:
-
gaussians(Gaussians) –The Gaussian primitives. -
args_prop(Namespace) –Must contain ``wavelengths``, ``pixel_pitch``, ``distances``, ``pad_size``, and ``aperture_size``.
Source code in odak/learn/wave/complex_gaussians.py
751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 | |
calculate_gaussian_directions(means_3D, camera)
¶
Compute unit direction vectors from camera centre to each Gaussian.
Parameters:
-
means_3D(Tensor) –3-D positions ``(N, 3)``. -
camera–
Returns:
-
gaussian_dirs(Tensor) –Unit direction vectors
(N, 3).
Source code in odak/learn/wave/complex_gaussians.py
compute_depth_values(camera)
¶
Compute per-Gaussian depth values in camera space.
Parameters:
-
camera(PerspectiveCamera) –
Returns:
-
z_vals(Tensor) –Depth values
(N,).
Source code in odak/learn/wave/complex_gaussians.py
compute_transmittance(alphas)
¶
Compute transmittance from per-Gaussian alpha values.
Parameters:
-
alphas(Tensor) –Alpha (opacity × Gaussian) values ``(N, H, W)``.
Returns:
-
transmittance(Tensor) –Cumulative transmittance
(N, H, W).
Source code in odak/learn/wave/complex_gaussians.py
get_idxs_to_filter_and_sort(z_vals)
¶
Sort Gaussians by depth and filter those behind the camera.
Parameters:
-
z_vals(Tensor) –Depth values ``(N,)``.
Returns:
-
idxs(Tensor) –Sorted indices with
z >= 0.
Source code in odak/learn/wave/complex_gaussians.py
render(camera, img_size=(-1, -1), bg_colour=(0.0, 0.0, 0.0), tile_size=(64, 64), step=-1, max_step=-1)
¶
Render a complex hologram from the current Gaussians.
Parameters:
-
camera(PerspectiveCamera) – -
img_size(Tuple, default:(-1, -1)) –``(W, H)``. -
bg_colour(tuple of float, default:(0.0, 0.0, 0.0)) –Background colour (unused in wave rendering). -
tile_size(tuple of int, default:(64, 64)) –Tile dimensions for splatting. -
step–Current training step (for scheduled activations). -
max_step–Maximum training step.
Returns:
-
hologram_complex(Tensor) –Complex hologram
(C, H, W). -
plane_field(Tensor) –Per-plane complex fields
(P, C, H, W).
Source code in odak/learn/wave/complex_gaussians.py
1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 | |
splat(camera, means_3D, z_vals, quats, scales, colours, phase, opacities, plane_probs, wavelengths, img_size=(256, 256), tile_size=(64, 64))
¶
Multi-channel wave-based tile splatting and propagation.
Parameters:
-
camera(PerspectiveCamera) – -
means_3D(Tensor) – -
z_vals(Tensor) – -
quats(Tensor) – -
scales(Tensor) – -
colours(Tensor) – -
phase(Tensor) – -
opacities(Tensor) – -
plane_probs(Tensor) – -
wavelengths(Tensor) – -
img_size(Tuple, default:(256, 256)) – -
tile_size(Tuple, default:(64, 64)) –
Returns:
-
hologram_complex(Tensor) –Complex hologram
(C, H, W). -
plane_fields(Tensor) –Per-plane fields
(P, C, H, W).
Source code in odak/learn/wave/complex_gaussians.py
862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 | |
splat_tile(R, fx, fy, px, py, cam_means_3D, z_vals, quats, scales, colours, phase, opacities, plane_probs, tile_x, tile_y, tile_size, gaussian_indices, img_size, wavelengths)
¶
Render a single tile for all planes (pure PyTorch).
Parameters:
-
R–Rotation matrix. -
fx(float or Tensor) –Camera intrinsics. -
fy(float or Tensor) –Camera intrinsics. -
px(float or Tensor) –Camera intrinsics. -
py(float or Tensor) –Camera intrinsics. -
cam_means_3D– -
z_vals– -
quats(Tensor) – -
scales(Tensor) – -
colours(Tensor) – -
phase(Tensor) – -
opacities(Tensor) – -
plane_probs– -
tile_x(int) – -
tile_y(int) – -
tile_size–``(tile_w, tile_h)`` for this tile. -
gaussian_indices(Tensor) –Indices of Gaussians overlapping this tile. -
img_size–Full image ``(W, H)``. -
wavelengths–
Returns:
-
result(Tensor) –(P, C, tile_h, tile_w)complex field for this tile.
Source code in odak/learn/wave/complex_gaussians.py
998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 | |
A lightweight perspective camera model.
Stores camera intrinsics and extrinsics and provides coordinate-transform utilities.
Parameters:
-
R–Rotation matrix, shape ``(3, 3)`` or ``(1, 3, 3)``. -
T–Translation vector, shape ``(3,)`` or ``(1, 3)``. -
focal_length–Focal lengths ``(fx, fy)``, shape ``(2,)`` or ``(1, 2)``. -
principal_point–Principal point ``(px, py)``, shape ``(2,)`` or ``(1, 2)``. -
device–Device for all tensors (default: ``"cpu"``).
Source code in odak/learn/tools/camera.py
get_camera_center()
¶
Compute the camera centre in world coordinates.
Returns:
-
center(Tensor) –Camera centre, shape
(1, 3).
Source code in odak/learn/tools/camera.py
transform_world_to_camera_space(points)
¶
Transform world-space points into camera space.
Follows the convention: X_cam = X_world @ R + T.
Parameters:
-
points(Tensor) –World-space points, shape ``(N, 3)``.
Returns:
-
cam_points(Tensor) –Camera-space points, shape
(N, 3).
Source code in odak/learn/tools/camera.py
Can I load Gaussians from a trained checkpoint instead of random initialisation?
Yes. Use init_type="gaussians" with a path to a .pth checkpoint:
gaussians = Gaussians(
init_type="gaussians",
device="cuda",
load_path="path/to/checkpoint.pth",
args_prop=args,
)
The checkpoint should contain the keys means, pre_act_quats, pre_act_scales, colours, pre_act_phase, pre_act_opacities, and pre_act_plane_assignment.
Can I initialise from a point cloud?
Yes. Use init_type="point" with a dictionary containing positions and colors tensors: