Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unecessary noqa #9

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions scripts/eval_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
from pathlib import Path

import tyro

from thermo_nerf.evaluator.evaluator import Evaluator # noqa: E402
from thermo_nerf.render.renderer import RenderedImageModality, Renderer # noqa: E402
from thermo_nerf.evaluator.evaluator import Evaluator
from thermo_nerf.render.renderer import RenderedImageModality, Renderer


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion scripts/images_to_nerf_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""

import tyro
from nerfstudio.process_data.images_to_nerfstudio_dataset import ( # noqa: E402
from nerfstudio.process_data.images_to_nerfstudio_dataset import (
ImagesToNerfstudioDataset,
)

Expand Down
14 changes: 1 addition & 13 deletions scripts/process_thermal/visualise_temperature.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
import json
import sys
from dataclasses import dataclass

import matplotlib.pyplot as plt
import tyro

# This is a hack so that the script work with azure sdkv2.
# The root folder is _not_ added to the python path as it was in sdkv1
# and thus, local imports of rebel_nerf are not found.
# Remove when https://github.com/Azure/azure-sdk-for-python/issues/29724 is fixed

sys.path.append(".")
sys.path.append("./nerfstudio")


from rebel_nerf.flir_themral_images.thermal_visualiser import ( # noqa: E402
ThermalVisualiser,
)
from rebel_nerf.flir_themral_images.thermal_visualiser import ThermalVisualiser


@dataclass
Expand Down
3 changes: 1 addition & 2 deletions scripts/render_video_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
from typing import Optional

import tyro

from thermo_nerf.render.renderer import RenderedImageModality, Renderer # noqa: E402
from thermo_nerf.render.renderer import RenderedImageModality, Renderer


@dataclass
Expand Down
13 changes: 5 additions & 8 deletions scripts/train_eval_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@

import tyro
from nerfstudio.engine.trainer import TrainerConfig
from nerfstudio.scripts.train import main # noqa: E402

from thermo_nerf.evaluator.evaluator import Evaluator # noqa: E402
from thermo_nerf.render.renderer import RenderedImageModality, Renderer # noqa: E402
from thermo_nerf.rgb_concat.config_concat_nerfacto import ConcatNerfConfig # noqa: E402
from thermo_nerf.thermal_nerf.config_thermal_nerf import ( # noqa: E402
ThermalNeRFTrackConfig,
)
from nerfstudio.scripts.train import main
from thermo_nerf.evaluator.evaluator import Evaluator
from thermo_nerf.render.renderer import RenderedImageModality, Renderer
from thermo_nerf.rgb_concat.config_concat_nerfacto import ConcatNerfConfig
from thermo_nerf.thermal_nerf.config_thermal_nerf import ThermalNeRFTrackConfig


@dataclass
Expand Down
2 changes: 1 addition & 1 deletion scripts/train_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Train a radiance field with nerfstudio.
"""

from nerfstudio.scripts.train import entrypoint # noqa: E402
from nerfstudio.scripts.train import entrypoint

if __name__ == "__main__":
entrypoint()