Skip to content

Commit fcdda17

Browse files
authored
Merge pull request #45 from jclarkk/main
Allow selecting CUDA rasterization
2 parents 3bc87e8 + dcba234 commit fcdda17

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

nodes.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,8 @@ def INPUT_TYPES(cls):
13181318
return {
13191319
"required": {
13201320
"gs_ply": ("GS_PLY",),
1321-
"gs_config": (['big', 'default', 'small', 'tiny'], )
1321+
"gs_config": (['big', 'default', 'small', 'tiny'], ),
1322+
"force_cuda_rast": ("BOOLEAN", {"default": False}),
13221323
},
13231324
}
13241325

@@ -1331,8 +1332,10 @@ def INPUT_TYPES(cls):
13311332
FUNCTION = "convert_gs_ply"
13321333
CATEGORY = "Comfy3D/Algorithm"
13331334

1334-
def convert_gs_ply(self, gs_ply, gs_config):
1335+
def convert_gs_ply(self, gs_ply, gs_config, force_cuda_rast):
13351336
with torch.inference_mode(False):
1337+
chosen_config = config_defaults[gs_config]
1338+
chosen_config.force_cuda_rast = force_cuda_rast
13361339
converter = GSConverterNeRFMarchingCubes(config_defaults[gs_config], gs_ply).cuda()
13371340
converter.fit_nerf()
13381341
converter.fit_mesh()

0 commit comments

Comments
 (0)