CrypticSignal / video-quality-metrics

Test specified presets/CRF values for the x264 or x265 encoder. Compares VMAF/SSIM/PSNR numerically & via graphs.
MIT License
116 stars 18 forks source link

AttributeError: 'Namespace' object has no attribute 'transcoded_video_path' #44

Open gedimiz opened 1 week ago

gedimiz commented 1 week ago

After trying to run command: python main.py -ntm -iv w_original.MP4 -tv w_placebo.mp4 -ssim -psnr

Get this error: Traceback (most recent call last): File "/home/vm/video-quality-metrics/main.py", line 300, in <module> output_folder = f"[VQM] {Path(args.transcoded_video_path).name}" ^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Namespace' object has no attribute 'transcoded_video_path'. Did you mean: 'transcoded_video'?

faresbouzayen commented 1 week ago

Hey there! It seems that the error is due to the transcoded_video_path attribute not being defined in the argument parser. From your command, it looks like you might have intended to use -tv for the transcoded video file.

Could you check if the argument parser in main.py defines transcoded_video_path or if it should be transcoded_video instead? You might want to replace args.transcoded_video_path with args.transcoded_video in line 300.

gedimiz commented 1 week ago

Well, I took this command from very first example here and then did not change anything in main.py, so it's as well default. Basically tried to run mint command wirh mint installation, but with error. :-) I am no coder unfortunately, it took me a while to get it "running" up to this point, but I am not sure how definition should look like in main.py. I see only args.transcoded_video_path and not args.transcoded_video in main.py