Skip to content

Commit

Permalink
Remove unecessary noqa
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaruiyu99 authored and MalcolmMielle committed Sep 5, 2024
1 parent bf930a3 commit 9a428d5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 28 deletions.
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()

0 comments on commit 9a428d5

Please sign in to comment.