Skip to content

Commit 74754bb

Browse files
bottlerfacebook-github-bot
authored andcommitted
voxel_grid_implicit_function
Reviewed By: shapovalov Differential Revision: D40622304 fbshipit-source-id: 277515a55c46d9b8300058b439526539a7fe00a0
1 parent 611aba9 commit 74754bb

File tree

4 files changed

+1008
-0
lines changed

4 files changed

+1008
-0
lines changed

Diff for: projects/implicitron_trainer/tests/experiment.yaml

+162
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,168 @@ model_factory_ImplicitronModelFactory_args:
394394
in_features: 256
395395
out_features: 3
396396
ray_dir_in_camera_coords: false
397+
implicit_function_VoxelGridImplicitFunction_args:
398+
harmonic_embedder_xyz_density_args:
399+
n_harmonic_functions: 6
400+
omega_0: 1.0
401+
logspace: true
402+
append_input: true
403+
harmonic_embedder_xyz_color_args:
404+
n_harmonic_functions: 6
405+
omega_0: 1.0
406+
logspace: true
407+
append_input: true
408+
harmonic_embedder_dir_color_args:
409+
n_harmonic_functions: 6
410+
omega_0: 1.0
411+
logspace: true
412+
append_input: true
413+
decoder_density_class_type: MLPDecoder
414+
decoder_color_class_type: MLPDecoder
415+
use_multiple_streams: true
416+
xyz_ray_dir_in_camera_coords: false
417+
scaffold_calculating_epochs: []
418+
scaffold_resolution:
419+
- 128
420+
- 128
421+
- 128
422+
scaffold_empty_space_threshold: 0.001
423+
scaffold_occupancy_chunk_size: 'inf'
424+
scaffold_max_pool_kernel_size: 3
425+
scaffold_filter_points: true
426+
volume_cropping_epochs: []
427+
voxel_grid_density_args:
428+
voxel_grid_class_type: FullResolutionVoxelGrid
429+
extents:
430+
- 2.0
431+
- 2.0
432+
- 2.0
433+
translation:
434+
- 0.0
435+
- 0.0
436+
- 0.0
437+
init_std: 0.1
438+
init_mean: 0.0
439+
hold_voxel_grid_as_parameters: true
440+
param_groups: {}
441+
voxel_grid_CPFactorizedVoxelGrid_args:
442+
align_corners: true
443+
padding: zeros
444+
mode: bilinear
445+
n_features: 1
446+
resolution_changes:
447+
0:
448+
- 128
449+
- 128
450+
- 128
451+
n_components: 24
452+
basis_matrix: true
453+
voxel_grid_FullResolutionVoxelGrid_args:
454+
align_corners: true
455+
padding: zeros
456+
mode: bilinear
457+
n_features: 1
458+
resolution_changes:
459+
0:
460+
- 128
461+
- 128
462+
- 128
463+
voxel_grid_VMFactorizedVoxelGrid_args:
464+
align_corners: true
465+
padding: zeros
466+
mode: bilinear
467+
n_features: 1
468+
resolution_changes:
469+
0:
470+
- 128
471+
- 128
472+
- 128
473+
n_components: null
474+
distribution_of_components: null
475+
basis_matrix: true
476+
voxel_grid_color_args:
477+
voxel_grid_class_type: FullResolutionVoxelGrid
478+
extents:
479+
- 2.0
480+
- 2.0
481+
- 2.0
482+
translation:
483+
- 0.0
484+
- 0.0
485+
- 0.0
486+
init_std: 0.1
487+
init_mean: 0.0
488+
hold_voxel_grid_as_parameters: true
489+
param_groups: {}
490+
voxel_grid_CPFactorizedVoxelGrid_args:
491+
align_corners: true
492+
padding: zeros
493+
mode: bilinear
494+
n_features: 1
495+
resolution_changes:
496+
0:
497+
- 128
498+
- 128
499+
- 128
500+
n_components: 24
501+
basis_matrix: true
502+
voxel_grid_FullResolutionVoxelGrid_args:
503+
align_corners: true
504+
padding: zeros
505+
mode: bilinear
506+
n_features: 1
507+
resolution_changes:
508+
0:
509+
- 128
510+
- 128
511+
- 128
512+
voxel_grid_VMFactorizedVoxelGrid_args:
513+
align_corners: true
514+
padding: zeros
515+
mode: bilinear
516+
n_features: 1
517+
resolution_changes:
518+
0:
519+
- 128
520+
- 128
521+
- 128
522+
n_components: null
523+
distribution_of_components: null
524+
basis_matrix: true
525+
decoder_density_ElementwiseDecoder_args:
526+
scale: 1.0
527+
shift: 0.0
528+
operation: IDENTITY
529+
decoder_density_MLPDecoder_args:
530+
param_groups: {}
531+
network_args:
532+
n_layers: 8
533+
output_dim: 256
534+
skip_dim: 39
535+
hidden_dim: 256
536+
input_skips:
537+
- 5
538+
skip_affine_trans: false
539+
last_layer_bias_init: null
540+
last_activation: RELU
541+
use_xavier_init: true
542+
decoder_color_ElementwiseDecoder_args:
543+
scale: 1.0
544+
shift: 0.0
545+
operation: IDENTITY
546+
decoder_color_MLPDecoder_args:
547+
param_groups: {}
548+
network_args:
549+
n_layers: 8
550+
output_dim: 256
551+
skip_dim: 39
552+
hidden_dim: 256
553+
input_skips:
554+
- 5
555+
skip_affine_trans: false
556+
last_layer_bias_init: null
557+
last_activation: RELU
558+
use_xavier_init: true
397559
view_metrics_ViewMetrics_args: {}
398560
regularization_metrics_RegularizationMetrics_args: {}
399561
optimizer_factory_ImplicitronOptimizerFactory_args:

Diff for: pytorch3d/implicitron/models/generic_model.py

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
SRNHyperNetImplicitFunction,
5353
SRNImplicitFunction,
5454
)
55+
from .implicit_function.voxel_grid_implicit_function import ( # noqa
56+
VoxelGridImplicitFunction,
57+
)
5558

5659
from .renderer.base import (
5760
BaseRenderer,

0 commit comments

Comments
 (0)