| PFTrack Documentation | Node Reference |
The Hero Splat node can be used to train Gaussian Splats to match images provided by one or more movie cameras, as generated by nodes such as the Camera Solver or Survey Solver nodes. In addition to cameras, 3D points are required to initialise the splats. These can be either 3D tracking points, or more complex geometry such as dense point clouds from the Hero Cloud node, or LiDAR / geometry provided by a Survey Solver node.
If you have a collection of photos and want to train gaussian splat from those, consider using the Photo Splat node.
Gaussian splats are a modern rendering primitive, much like a "soft" 3D point. Many thousands (or even millions) of splats are generated by a training process to best fit your input images. Each splat has a position, size, opacity and view-dependent colour, and when all rendered together they can provide photo-realistic representations of 3D scenes for rendering or compositing tasks.
Note: Gaussian splat training and rendering requires Vulkan compatible GPU drivers on your computer. These should be installed by default on most NVidia, AMD or Intel platforms (for Windows and Linux) and are available on macOS via a Metal compatibility layer included with PFTrack.
The Hero Splat node supports movie camera inputs. Before training, ensure that the training parameters are suitable for your dataset and system resources.
Each input to the Hero Splat node must contain a tracked camera, along with some 3D points to initialise the gaussian splat positions for training. Input images can be any bit depth (including full and half-float OpenEXR), and the Hero Splat node can be adjusted to train splats in a colour space of your choice, including extended-dynamic-range spaces supported by OpenColorIO.
A typical workflow will be:
Input cameras must have already been solved, and lens distortion corrected before before using the Hero Splat node.
Multiple input cameras can be connected to the Hero Splat, and gaussian splats trained to match all cameras if needed, provided all cameras are located correctly relative to each other in the same coordinate space.
Whilst gaussian splats can be trained from 3D tracking points alone, these are often relatively sparse points not always suitable for training. Better results can often be obtained by using a higher density of initial points, as provided by the Hero Cloud node.
If a Survey Solver node has been used to track your cameras, LiDAR or survey geometry will be used to initialise your gaussian splats for training.
If you must use tracking points on their own, consider generating additional points using a second Auto Track node, and solving them without adjusting your camera by using a second Camera Solver node and clicking the Solve Trackers button. This will create many more input points without changing your camera positions.
This specifies the percentage of input movie frames that will be used for training. For the best results, it is often preferable to use a smller fraction of input movie frames, as this will increase the training speed and reduce the memory requirements.
The individual frames that are being used are displayed using green markers in the scrub bar, and highlighted with keyframe positions in the Viewer window.
When multiple clips are available, click the Next Clip button (or press the C key) to show the next clip in the Cinema window
The image cache is used to hold the input images whilst training. By default, this is set to System RAM which means all training images are stored in RAM and the required resolutions. Changing this to GPU VRAM will store all training images in VRAM, which may increase overall training speed on some platforms, but will also require a large amount of VRAM.
For high resolution images, the training resolution can be changed from Full Resolution to Half Resolution or Quarter Resolution if desired. This will reduce the amount of RAM needed to store the training images.
Note: When using high resolution input images, it is often preferable to perform gaussian splat training at half or even quarter resolution, as this can provide results that are visually very similar to those at high resolution without the accompanying resource and training time requirements. Combined with PFTrack's Multi-scale training, this is the recommended approach to training with high resolution datasets
By default, PFTrack will train gaussian splats to match the pixel colours of your input images, regardless of the colour space you are using. If you require gaussian splats to be represented in a specific colour space for your pipeline, you can specify the colour space to use from the menu.
To use a different colour space for training, OpenColorIO must be enabled in the preferences window, and the colour space for your input clips must be defined in the Clip Input node.
Note: When training gaussian splats, keep in mind the colour space required by the rendering or compositing application you will be using after exporting the data from PFTrack. Some applications expect sRGB splat colours, and others expect linear colour spaces such as ACEScg. If in doubt, consult the documentation for your application before training.
When training gaussian splats for shots containing moving objects, better results will be obtained if those objects are masked before training. This will ensure they are excluded from the training images and do not corrupt the splat positions.
Attach a Keyer or Mask node to the Hero Splat node to create and edit masks.
When masks are available, the Masks button can be used to toggle how masks are: active, inverted or off.
During gaussian splat training, PFTrack performs one training pass through all input images to adjust gaussian splat parameters. This parameter controls the total number of training passes that PFTrack will perform.
The default value is 300, so training will complete after 300 passes. For an input dataset size of 100 images, this corresponds to 30,000 individual training steps.
Increasing the number of training steps will allow PFTrack to adjust the splat parameters to better fit your input images, but will also require more time to complete.
When using high resolution images, PFTrack is able to use multi-scale training whereby earlier training passes are performed on a lower resolution version of the input image. This can often improve accoracy during early training iterations, and also increase the speed at which training occurs.
As training progresses, the highest available resolution images will be used during the later training passes.
Note: multi-scale training can be combined with the image resolution parameter in the Image cache. For example, if you have very high resolution inputs and have set your image cache to Half resolution, you can still enable multi-scale training to use quarter resolution during the early stages. Multi-scale training is not available if you have set your image cache to the lowest setting of Quarter Resolution.
During training, PFTrack attempts to increase the number of gaussian splats that are used to represent your scene to best match your input images. This process is called Decimation and is essential to obtaining a good quality set of gaussian splats.
The rate at which decimation occurs can be adjusted from the menu. The default setting is Moderate, which attempts to increase the number of spats at a moderate rate during training. Changing this to Aggressive will mean the number of splats is increased at a faster rate, or Gentle means the splats increase at a slower rate.
Reducing the rate at which splats are generated can often help to improve training quality if your input images are sparse, or your input images or points are particularly noisy. A slower rate gives the gaussian splats more time to settle and better match your input images.
Conversely, a faster rate can be used if you have a very well defined input dataset with little noise in your images, as this will speed up the decimation process and give more time at the end of training to adjust the splat parametrers.
The number of training passes for which decimation is performed it controled by the Passes % parameter. The default value is 70%, which means decimation is performed for the first 70% of training passes only. After that, no more splats are generated and instead training concentrates on adjusting the existing splats to better fit your images.
Adjusting this parameter will make the training spend more or less time fine-tuning your splat parameters, instead of creating more splats.
When training, decimation will increas the number of gaussian splats to best fit your images. This parameter controls the maximum number of splats that will be generated. For very large scenes, increasing this value will often provide a more accuracte result since more splats are available to represent individual parts of your input images.
The default value is 1 million (1M). Increasing this value will require more RAM and VRAM usage during training, and will also increase the time it takes for training to complete.
Typically, 1M splats will occupy around 225MB of RAM. The number of splats can be adjusted after training is paused, if required, and when training continues additional splats will be generated during decimation passes.
When gaussian splats are rendered, they are composited together in a back-to-front order to generate a final colour for each pixel. By default, this composition process starts with a black background.
For some datasets (for example, if a blue sky is visible in your images), it can often be preferable to start with a background colour that is more representative of your dataset. This means training will not have to concentrate as much on turning a black background into blue sky to match your images, and those splats can be better used elsewhere in your scene.
To select an appropriate background colour, enable the Use background colour option and then click either the Sky or Ground buttons. This will enable a colour-picker, and clicking with the left mouse button in the Cinema window you can pick a suitable colour for each.
Note: The background colour you select is included in all exported gaussian splat datasets, so you can ensure that the final composited colour for your splats is the same regardless of the application they are rendered with.
As part of the training process, PFTrack will measure statistics and metrics related to how well the gaussian splats match your input images. These metrics are calculates from validation images, or directly from the images that are being trained.
The default choice of images is Training set which means metrics will be calculated for a subset of the images used for training. This is useful if you want to see how training is progressing for your image images.
The Image % parameter specifies the percentage of training images that will be used for metric calculations, and a random selection will be used for each pass. Note that increasing this value will provide a more representative measure of accuracy, but will also take more time to calculate, slowing down the training process. If speed is of more concern than metrics, reduce this number below its default value of 10.
Depending on the end-use case for your gaussian splats, you may instead want to measure metrics for images that are NOT included in your training dataset. In this case, you can change the metrics to Validation set. This is especially important if your gaussian splats are to be rendered from camera locations that are significantly different to those in your input images.
When using Validation set for metrics, the images selected for validation will be excluded from training. The individual frames in the validation set are displayed using yellow markers in the scrub bar.
The metrics graph will display statistics such as the Peak signal-to-noise ratio or the Root-mean-squared error for your training or validation set. The graph is refereshed periodically (by default, every 5 seconds), and the refresh period can be changed using the menu. Options are available for refreshing every pass, or less frequently up to once every 60 seconds.
The horizontal axis of the graph represents the training pass, and the vertical axis represents the chosen display statistic. The graph shows the range of the minimum and maximum statistic in dark blue, along with the mean represented as a light blue line.
After training is paused or has completed, hover the mouse over the graph to see a numerical display for each pass.
Before training, make sure to check the results information and make sure your estimated memory usage is sufficient for your computer.
The amount of system RAM and GPU VRAM used depends on the following factors:
If you do not have the available system RAM or VRAM, consider reducing these values to ensure you do not run out of memory. In particular, for high resolution images it is often preferable to train at half or even quarter resolution.
To start training, click the Start Training button. This will prepare your input dataset (if necessary) and then begin the training process.
Whilst training, the Viewer window will update to display a rendered view for a validation image, and the metrics graph will update to display the statistics for each training pass.
You can pause training at any time by clicking the Pause Training button. When paused, the Hero Splat node will record a checkpoint, so training can be continued at a later date if needed.
Whilst trainig is paused, some parameters can also be adjusted (such as the Maximum splats or Image cache resolution before continuing.
To continue training, click the Continue Training button.
To clear the results of training, including any checkpoint and the gaussian splats, click the Clear button. This will allow training to begin from scratch again by clicking the Start Training button.
- Show in Cinema: Click this to toggle display of gaussian splats in the Cinema window.
- Show in Viewers: Click this to toggle display of gaussian splats in the Viewer windows. Note that gaussian splats are only rendered as splats when using a perspective camera. Orthographic cameras will display splats using a coloured centre-point only.
- Points Only: Click this to toggle between rendering full gaussian splats, or their coloured centre-points only.
Below the display controls is a text summary of your training parameters and results. This shows expected and actual memory usage, along with the training and decimation passes that have been performed:
PFTrack supports a variety of export formats, but not all of them currently support gaussian splats. To export your splats, attach a Scene Export node and select a format such as Gaussian Splats SPZ or Gaussian Splats PLY. We recommend using the SPZ format if your pipeline supports it.
Note: these formats only export your gaussian splats. To export your camera positions as well, create a second export in the Exports list, and use a format such as Alembic, OpenUSD or FBX to export your camera positions alongside your splats.
One important consideration is the coordinate system used to export your splats. The SPZ format will set this for you automatically, but when using the PLY format, you must specifiy this yourself.
Many applications expect gaussian splats PLY files to use the COLMAP coordinate system, so make sure to enable this if needed. Alternatively, set your left/right handed and Y/Z up accordingly.
If requires for further compositing tasks, the Z-depth buffers generated by the gaussian splats can be passed downstream from the Hero Splat node to a Footage Export node and exported as OpenEXR image files.
Keyboard shortcuts can be customised in the Preferences.
Next Clip | C |
Show in Cinema | Ctrl+C |
Show in Viewers | Ctrl+V |
Points Only | Ctrl+P |
-----
FBX is a registered trademarks of Autodesk Inc. in the USA and other countries.
Alembic is trademark of and copyright 2009-2015 Lucasfilm Entertainment Company Ltd. or Lucasfilm Ltd. All rights reserved. Industrial Light & Magic, ILM and the Bulb and Gear design logo are all registered trademarks or service marks of Lucasfilm Ltd. Copyright 2009-2015 Sony Pictures Imageworks Inc. All rights reserved.
OpenEXR is a trademark of LF Projects, LLC.
OpenUSD is a trademark and brand of Red Envelope Bravo Tech Ltd.