From ad8599aad0238418ed9dabb29f0a5beae6f6bb69 Mon Sep 17 00:00:00 2001 From: Brent Yi Date: Thu, 10 Nov 2022 16:56:13 -0800 Subject: [PATCH] Add missing __init__.py files (#935) * Add missing __init__.py files * fixing lint Co-authored-by: Ethan Weber --- nerfstudio/data/datamanagers/__init__.py | 13 +++++++++++++ nerfstudio/data/datamanagers/base_datamanager.py | 2 +- .../data/datamanagers/semantic_datamanager.py | 4 ++++ nerfstudio/data/datasets/__init__.py | 13 +++++++++++++ nerfstudio/data/datasets/base_dataset.py | 2 +- nerfstudio/data/datasets/semantic_dataset.py | 4 ++++ 6 files changed, 36 insertions(+), 2 deletions(-) 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 000000000..d926cf95c --- /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/datamanagers/base_datamanager.py b/nerfstudio/data/datamanagers/base_datamanager.py index 82cf4a0d5..1beb29963 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 a66e4f365..011a68ce2 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/__init__.py b/nerfstudio/data/datasets/__init__.py new file mode 100644 index 000000000..d926cf95c --- /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. diff --git a/nerfstudio/data/datasets/base_dataset.py b/nerfstudio/data/datasets/base_dataset.py index 0c6c9fe15..15d4296d0 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 2fc551488..f2c2a0910 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