Fix different initial tension value between tension_slider and `cam… (#3271)

* Fix different initial tension value between `tension_slider` and `camera_path.tension`

* Fix ruff check
This commit is contained in:
Zhensheng Yuan authored and GitHub committed 2024-06-28 12:31:26 -04:00
1 parent d6df39b70d
commit df57a8db72
3 files changed
+2 -3

No files matched your search

-2
View File
@@ -301,8 +301,6 @@ method_configs["instant-ngp-bounded"] = TrainerConfig(
viewer=ViewerConfig(num_rays_per_chunk=1 << 12),
vis="viewer",
)
#
#
method_configs["mipnerf"] = TrainerConfig(
method_name="mipnerf",
pipeline=VanillaPipelineConfig(
+1
View File
@@ -1166,6 +1166,7 @@ def populate_render_tab(
camera_path = CameraPath(server, duration_number, control_panel._time_enabled)
else:
camera_path = CameraPath(server, duration_number)
camera_path.tension = tension_slider.value
camera_path.default_fov = fov_degrees.value / 180.0 * np.pi
camera_path.default_transition_sec = transition_sec_number.value
+1 -1
View File
@@ -42,7 +42,7 @@ def test_load_state_dict():
"""Test pipeline load_state_dict calls model's load_state_dict"""
was_called = False
class MockedModel(Model): #
class MockedModel(Model):
"""Mocked model"""
def __init__(self, *args, **kwargs):