mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-01 21:39:06 +08:00
[WIP] added preset button controls; moved rendering into timing loop (#270)
added preset button controls; moved rendering into timing loop
This commit is contained in:
1 parent
8e32e7863e
commit
b03755d6ab
2 files changed
+6
-1
No files matched your search
@@ -105,7 +105,6 @@ class Trainer:
|
|||||||
# Note: if visualizer used, the rendering of the visualizer will be included in the iteration train time
|
# Note: if visualizer used, the rendering of the visualizer will be included in the iteration train time
|
||||||
with TimeWriter(writer, EventName.ITER_TRAIN_TIME, step=step) as t:
|
with TimeWriter(writer, EventName.ITER_TRAIN_TIME, step=step) as t:
|
||||||
loss_metric_dict = self.train_iteration(step)
|
loss_metric_dict = self.train_iteration(step)
|
||||||
|
|
||||||
with TimeWriter(writer, EventName.ITER_VIS_TIME, step=step) as t:
|
with TimeWriter(writer, EventName.ITER_VIS_TIME, step=step) as t:
|
||||||
self.visualizer_state.update_scene(step, self.pipeline.model)
|
self.visualizer_state.update_scene(step, self.pipeline.model)
|
||||||
|
|
||||||
|
|||||||
@@ -213,6 +213,12 @@ export function RenderControls() {
|
|||||||
set_fov(v);
|
set_fov(v);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
// training speed
|
||||||
|
"Train Speed": buttonGroup({
|
||||||
|
'Fast': () => setControls({ min_resolution: 10, max_resolution: 10 }),
|
||||||
|
'Balanced': () => setControls({min_resolution: 50, max_resolution: 512 }),
|
||||||
|
'Slow': () => setControls({ min_resolution: 100, max_resolution: 1024 }),
|
||||||
|
}),
|
||||||
}),
|
}),
|
||||||
[
|
[
|
||||||
isTraining,
|
isTraining,
|
||||||
|
|||||||
Reference in new issue
Block a user