Skip to content

Commit

Permalink
fix #52
Browse files Browse the repository at this point in the history
  • Loading branch information
ashawkey committed Oct 24, 2022
1 parent 5d9dde6 commit e6ba08d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@
opt.dir_text = True
opt.negative_dir_text = True

opt.lambda_entropy = 1e-4 # necessary to keep non-empty
opt.lambda_opacity = 3e-3 # no occupancy grid, so use a stronger opacity loss.
# opt.lambda_entropy = 1e-4 # necessary to keep non-empty
# opt.lambda_opacity = 3e-3 # no occupancy grid, so use a stronger opacity loss.

if opt.backbone == 'vanilla':
from nerf.network import NeRFNetwork
Expand Down
2 changes: 1 addition & 1 deletion nerf/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def callback_save(sender, app_data):
dpg.add_text("Marching Cubes: ")

def callback_mesh(sender, app_data):
self.trainer.save_mesh(resolution=256, threshold=10)
self.trainer.save_mesh(resolution=256)
dpg.set_value("_log_mesh", "saved " + f'{self.trainer.name}_{self.trainer.epoch}.ply')
self.trainer.epoch += 1 # use epoch to indicate different calls.

Expand Down

0 comments on commit e6ba08d

Please sign in to comment.