update
This commit is contained in:
@@ -4,7 +4,7 @@ Path: /home/netoa/Desktop/ISR/metrics/subjective
|
||||
Created Date: Saturday January 25th 2025
|
||||
Author: Andre Neto
|
||||
-----
|
||||
Last Modified: Wed Mar 12 2025
|
||||
Last Modified: Mon May 19 2025
|
||||
Modified By: Andre Neto
|
||||
-----
|
||||
Copyright (c) 2025 Institute of Systems and Robotics
|
||||
@@ -45,7 +45,7 @@ def compute_mos(test_csv, session_csv, user_csv, image_csv, output_csv):
|
||||
image_stats = image_stats.sort_values(by="file_name", ascending=True)
|
||||
|
||||
# Save overall MOS to output file
|
||||
overall_output = os.path.splitext(output_csv)[0] + "_overall.csv"
|
||||
overall_output = os.path.splitext(output_csv)[0] + ".csv"
|
||||
image_stats.to_csv(overall_output, index=False)
|
||||
print(f"MOS saved to {overall_output}")
|
||||
|
||||
@@ -54,7 +54,7 @@ def main():
|
||||
""" Main script for computing MOS. """
|
||||
|
||||
tables_dir = 'metrics/subjective/tables'
|
||||
results_dir = 'results/sheets'
|
||||
results_dir = 'results/webapp'
|
||||
|
||||
os.makedirs(tables_dir, exist_ok=True)
|
||||
os.makedirs(results_dir, exist_ok=True)
|
||||
@@ -64,7 +64,7 @@ def main():
|
||||
session_csv = os.path.join(tables_dir, "app_ss_session.csv")
|
||||
test_csv = os.path.join(tables_dir, "app_ss_test.csv")
|
||||
image_csv = os.path.join(tables_dir, "app_database_image.csv")
|
||||
output_csv = os.path.join(results_dir, "iqa_subjective.csv")
|
||||
output_csv = os.path.join(results_dir, "detailed_mos.csv")
|
||||
|
||||
# Compute MOS
|
||||
compute_mos(test_csv, session_csv, user_csv, image_csv, output_csv)
|
||||
|
||||
Reference in New Issue
Block a user