From fdca647c09f147eccc61816943760f4c398ae343 Mon Sep 17 00:00:00 2001 From: Brent Yi Date: Fri, 19 Jan 2024 15:51:07 -0800 Subject: [PATCH] Add shim for viewer_elements namespace, fixes https://github.com/ayaanzhaque/instruct-nerf2nerf/pull/88 --- nerfstudio/viewer/server/__init__.py | 14 ++++++++++++++ nerfstudio/viewer/server/viewer_elements.py | 19 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 nerfstudio/viewer/server/__init__.py create mode 100644 nerfstudio/viewer/server/viewer_elements.py diff --git a/nerfstudio/viewer/server/__init__.py b/nerfstudio/viewer/server/__init__.py new file mode 100644 index 0000000000..40c3732998 --- /dev/null +++ b/nerfstudio/viewer/server/__init__.py @@ -0,0 +1,14 @@ +# Copyright 2022 the Regents of the University of California, Nerfstudio Team and contributors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + diff --git a/nerfstudio/viewer/server/viewer_elements.py b/nerfstudio/viewer/server/viewer_elements.py new file mode 100644 index 0000000000..e8a520478a --- /dev/null +++ b/nerfstudio/viewer/server/viewer_elements.py @@ -0,0 +1,19 @@ +# Copyright 2022 the Regents of the University of California, Nerfstudio Team and contributors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""Shim for viewer_elements.py, which has been moved. + +Resolves issues like: https://github.com/ayaanzhaque/instruct-nerf2nerf/pull/88 +""" +from ..viewer_elements import *