yslan commited on
Commit
a0896dd
1 Parent(s): 266275c
Files changed (2) hide show
  1. nsr/script_util.py +4 -4
  2. vit/vit_triplane.py +1 -1
nsr/script_util.py CHANGED
@@ -19,7 +19,7 @@ from ldm.modules.diffusionmodules.model import Encoder, Decoder, MVEncoder, MVEn
19
  from ldm.modules.diffusionmodules.mv_unet import MVUNet, LGM_MVEncoder
20
  from torch.profiler import profile, record_function, ProfilerActivity
21
 
22
- from nsr.gs import GaussianRenderer
23
  from nsr.gs_surfel import GaussianRenderer2DGS
24
  # from nsr.srt.encoder import ImprovedSRTEncoderVAE, ImprovedSRTEncoderVAE_L5_vitl, ImprovedSRTEncoderVAE_mlp_ratio4, ImprovedSRTEncoderVAE_L6, ImprovedSRTEncoderVAE_mlp_ratio4_f8, ImprovedSRTEncoderVAE_mlp_ratio4_heavyPatchify, ImprovedSRTEncoderVAE_mlp_ratio4_f8_L6, ImprovedSRTEncoderVAE_mlp_ratio4_L6, HybridEncoder, ImprovedSRTEncoderVAE_mlp_ratio4_decomposed, HybridEncoderPCDStructuredLatent
25
  from nsr.srt.encoder import *
@@ -1482,9 +1482,9 @@ def create_3DAE_model(
1482
  elif surfel_rendering:
1483
  triplane_decoder = GaussianRenderer2DGS(
1484
  image_size, out_chans, rendering_kwargs=rendering_kwargs)
1485
- else:
1486
- triplane_decoder = GaussianRenderer(
1487
- image_size, out_chans, rendering_kwargs=rendering_kwargs)
1488
 
1489
  if load_pretrain_encoder:
1490
 
 
19
  from ldm.modules.diffusionmodules.mv_unet import MVUNet, LGM_MVEncoder
20
  from torch.profiler import profile, record_function, ProfilerActivity
21
 
22
+ # from nsr.gs import GaussianRenderer
23
  from nsr.gs_surfel import GaussianRenderer2DGS
24
  # from nsr.srt.encoder import ImprovedSRTEncoderVAE, ImprovedSRTEncoderVAE_L5_vitl, ImprovedSRTEncoderVAE_mlp_ratio4, ImprovedSRTEncoderVAE_L6, ImprovedSRTEncoderVAE_mlp_ratio4_f8, ImprovedSRTEncoderVAE_mlp_ratio4_heavyPatchify, ImprovedSRTEncoderVAE_mlp_ratio4_f8_L6, ImprovedSRTEncoderVAE_mlp_ratio4_L6, HybridEncoder, ImprovedSRTEncoderVAE_mlp_ratio4_decomposed, HybridEncoderPCDStructuredLatent
25
  from nsr.srt.encoder import *
 
1482
  elif surfel_rendering:
1483
  triplane_decoder = GaussianRenderer2DGS(
1484
  image_size, out_chans, rendering_kwargs=rendering_kwargs)
1485
+ # else:
1486
+ # triplane_decoder = GaussianRenderer(
1487
+ # image_size, out_chans, rendering_kwargs=rendering_kwargs)
1488
 
1489
  if load_pretrain_encoder:
1490
 
vit/vit_triplane.py CHANGED
@@ -58,7 +58,7 @@ from timm.models.vision_transformer import PatchEmbed
58
 
59
  from utils.general_utils import matrix_to_quaternion, quaternion_raw_multiply, build_rotation
60
 
61
- from nsr.gs import GaussianRenderer
62
 
63
  from utils.dust3r.heads import create_dpt_head
64
 
 
58
 
59
  from utils.general_utils import matrix_to_quaternion, quaternion_raw_multiply, build_rotation
60
 
61
+ # from nsr.gs import GaussianRenderer
62
 
63
  from utils.dust3r.heads import create_dpt_head
64