Skip to content

Commit

Permalink
Change the path to save temperature bound json file
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaruiyu99 committed Oct 30, 2024
1 parent 86cb0cf commit ff54cee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions thermo_scenes/scripts/preprocess_thermal.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class Paths:
"""Path to the output rgb images"""
path_to_csv_files: str
"""Path to the output csv files of temperature values"""
path_to_txt: str = "temperature_bounds.json"
"""Path to the txt file with temperature bounds for the dataset"""
path_to_json: str
"""Path to the output json file with temperature bounds for the dataset"""


def main() -> None:
Expand All @@ -37,7 +37,9 @@ def main() -> None:
flir.save_normalised_thermal_images(
paths.path_to_thermal_images_curated, paths.path_to_csv_files
)
flir.save_temperature_bounds(paths.path_to_txt)
flir.save_temperature_bounds(
str(Path(paths.path_to_json, "temperature_bounds.json"))
)


if __name__ == "__main__":
Expand Down

0 comments on commit ff54cee

Please sign in to comment.