From 962889975dde6fe14a0659e54af57915121892a9 Mon Sep 17 00:00:00 2001 From: Brent Yi Date: Thu, 10 Nov 2022 15:12:16 -0800 Subject: [PATCH 1/2] Add missing __init__.py files --- nerfstudio/data/datamanagers/__init__.py | 13 +++++++++++++ nerfstudio/data/datasets/__init__.py | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 nerfstudio/data/datamanagers/__init__.py create mode 100644 nerfstudio/data/datasets/__init__.py diff --git a/nerfstudio/data/datamanagers/__init__.py b/nerfstudio/data/datamanagers/__init__.py new file mode 100644 index 0000000000..d926cf95c3 --- /dev/null +++ b/nerfstudio/data/datamanagers/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022 The Nerfstudio Team. 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/data/datasets/__init__.py b/nerfstudio/data/datasets/__init__.py new file mode 100644 index 0000000000..d926cf95c3 --- /dev/null +++ b/nerfstudio/data/datasets/__init__.py @@ -0,0 +1,13 @@ +# Copyright 2022 The Nerfstudio Team. 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. From 67e6203fb6557ec7308cef703426b825fd79e781 Mon Sep 17 00:00:00 2001 From: Ethan Weber Date: Fri, 11 Nov 2022 00:24:39 +0000 Subject: [PATCH 2/2] fixing lint --- nerfstudio/data/datamanagers/base_datamanager.py | 2 +- nerfstudio/data/datamanagers/semantic_datamanager.py | 4 ++++ nerfstudio/data/datasets/base_dataset.py | 2 +- nerfstudio/data/datasets/semantic_dataset.py | 4 ++++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/nerfstudio/data/datamanagers/base_datamanager.py b/nerfstudio/data/datamanagers/base_datamanager.py index 82cf4a0d5f..1beb299631 100644 --- a/nerfstudio/data/datamanagers/base_datamanager.py +++ b/nerfstudio/data/datamanagers/base_datamanager.py @@ -13,7 +13,7 @@ # limitations under the License. """ -Data loader. +Datamanager. """ from __future__ import annotations diff --git a/nerfstudio/data/datamanagers/semantic_datamanager.py b/nerfstudio/data/datamanagers/semantic_datamanager.py index a66e4f365c..011a68ce21 100644 --- a/nerfstudio/data/datamanagers/semantic_datamanager.py +++ b/nerfstudio/data/datamanagers/semantic_datamanager.py @@ -12,6 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +""" +Semantic datamanager. +""" + from dataclasses import dataclass, field from typing import Type diff --git a/nerfstudio/data/datasets/base_dataset.py b/nerfstudio/data/datasets/base_dataset.py index 0c6c9fe158..15d4296d02 100644 --- a/nerfstudio/data/datasets/base_dataset.py +++ b/nerfstudio/data/datasets/base_dataset.py @@ -13,7 +13,7 @@ # limitations under the License. """ -Some dataset code. +Dataset. """ from __future__ import annotations diff --git a/nerfstudio/data/datasets/semantic_dataset.py b/nerfstudio/data/datasets/semantic_dataset.py index 2fc551488d..f2c2a09103 100644 --- a/nerfstudio/data/datasets/semantic_dataset.py +++ b/nerfstudio/data/datasets/semantic_dataset.py @@ -12,6 +12,10 @@ # See the License for the specific language governing permissions and # limitations under the License. +""" +Semantic dataset. +""" + from typing import Dict import torch