mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-07 00:09:14 +08:00
annealing
This commit is contained in:
1 parent
efd745af13
commit
8ea6534b7e
1 file changed
+3
-4
@@ -316,10 +316,9 @@ class NerfactoModel(Model):
|
|||||||
outputs["rendered_pred_normal_loss"]
|
outputs["rendered_pred_normal_loss"]
|
||||||
)
|
)
|
||||||
#depth regularity loss
|
#depth regularity loss
|
||||||
if self.step>100:
|
p=3
|
||||||
p=3
|
patches = outputs['depth'].view(-1,p,p) #Bx3x3
|
||||||
patches = outputs['depth'].view(-1,p,p) #Bx3x3
|
loss_dict['depth_reg'] = np.interp(self.step,[0,500],[0,1])*torch.mean(torch.sum((patches.view(-1,p*p) - patches[:,p//2,p//2][:,None])**2,dim=1))
|
||||||
loss_dict['depth_reg'] = .1*torch.mean(torch.sum((patches.view(-1,p*p) - patches[:,p//2,p//2][:,None])**2,dim=1))
|
|
||||||
|
|
||||||
return loss_dict
|
return loss_dict
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user