mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-12 19:04:03 +08:00
save renders to a folder and bump viewer version (#733)
save data to renders folder. bump viewer
This commit is contained in:
1 parent
26a41923e5
commit
b37eae5bb2
6 files changed
+9
-9
No files matched your search
+3
-1
@@ -80,6 +80,8 @@ def _render_trajectory_video(
|
||||
images.append(image)
|
||||
|
||||
fps = len(images) / seconds
|
||||
# make the folder if it doesn't exist
|
||||
output_filename.parent.mkdir(parents=True, exist_ok=True)
|
||||
with console.status("[yellow]Saving video", spinner="bouncingBall"):
|
||||
media.write_video(output_filename, images, fps=fps)
|
||||
console.rule("[green] :tada: :tada: :tada: Success :tada: :tada: :tada:")
|
||||
@@ -101,7 +103,7 @@ class RenderTrajectory:
|
||||
# Filename of the camera path to render.
|
||||
camera_path_filename: Path = Path("camera_path.json")
|
||||
# Name of the output file.
|
||||
output_path: Path = Path("output.mp4")
|
||||
output_path: Path = Path("renders/output.mp4")
|
||||
# How long the video should be.
|
||||
seconds: float = 5.0
|
||||
# A hack to double the number of samples for the nerfacto method.
|
||||
|
||||
Reference in new issue
Block a user