does this repository have a kernel size setting?
- User
does this repository have a kernel size setting?
- Assistant
Yes, this repository does have an implicit kernel size setting, but it is not explicitly exposed as a single parameter named "kernel size". Instead, the kernel size is determined by the radii of the Gaussians, which are computed or passed as inputs during the rasterization process.
Contextual Clues:
-
radiiparameter:-
In
rasterizer_impl.cu, theduplicateWithKeyskernel generates key-value pairs for Gaussian-tile overlaps based on the radii of the Gaussians. The radii determine the size of the bounding rectangle (or kernel) for each Gaussian when mapping it to the image grid:cugetRect(points_xy[idx], radii[idx], rect_min, rect_max, grid);The radii directly affect how large the kernel is for a Gaussian on the screen.
-
If no radii are explicitly provided, they are computed internally:
cuif (radii == nullptr) { radii = geomState.internal_radii; }
-
-
Gaussian scaling (
scales):- The
scalesparameter and thescale_modifieralso influence the effective size of the Gaussian splatting kernel. This is evident in theFORWARD::preprocessfunction, which uses these values to determine the properties of the Gaussians during preprocessing.
- The
-
CUDA Block Size:
- The rasterizer defines CUDA block sizes for its kernels using
BLOCK_XandBLOCK_Y:These define the size of CUDA threads per block (16x16), which indirectly relates to the kernel's computational granularity, but not the Gaussian kernel size itself.h#define BLOCK_X 16 #define BLOCK_Y 16
- The rasterizer defines CUDA block sizes for its kernels using
-
Tile Grid:
- The kernel size is also related to the tile grid size, which is determined by the resolution of the image and the block size:
cu
dim3 tile_grid((width + BLOCK_X - 1) / BLOCK_X, (height + BLOCK_Y - 1) / BLOCK_Y, 1);
- The kernel size is also related to the tile grid size, which is determined by the resolution of the image and the block size:
How to Adjust Kernel Size
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.