YanjieZe/GNFactor

Code indentation error

Closed this issue · 2 comments

Hi,

Is there a code indentation error here?

if self.using_fine:
all_samps = [z_coarse]
if self.n_fine - self.n_fine_depth > 0:
all_samps.append(
self.sample_fine(rays, coarse_composite[0].detach())
) # (B, Kf - Kfd)
if self.n_fine_depth > 0:
all_samps.append(
self.sample_fine_depth(rays, coarse_composite[-1])
) # (B, Kfd)
z_combine = torch.cat(all_samps, dim=-1) # (B, Kc + Kf)
z_combine_sorted, argsort = torch.sort(z_combine, dim=-1)
fine_composite = self.composite(
self.nerf_model, rays, z_combine_sorted, coarse=False, sb=superbatch_size,
)
outputs.fine = self._format_outputs(
fine_composite, superbatch_size, want_weights=want_weights,
)

Hi, it seems no error here. could it run properly on your computer?
If there are indentation errors on your computer, maybe you could adjust directly. I think it might be possibly caused by the code editor or something.

Yeah, it works.