Skip to content

Conversation

@vibhoothi
Copy link

This is problematic if we do not sort when we feed two folders.
Python does not care about frame orders, but we care, so in some cases,
it was comparing Frame 2 with Frame 90. So to be correct, we
sort it before returning the list.

PS: Will rebase once #7 is merged

This allows us to have a CSV file (can be extended to JSON/XML) in
future for quality metrics computed by the program.
By default it saves to $output/${basename}-metrics.csv format.

This is enabled by default because why not
This is problematic if we do not sort when we feed two folders.
Python do not care frame orders, but we care, so in some cases
it was comparing Frame 2 with Frame 90. So to be correct, we
sort it before returing the list.
Copy link
Collaborator

@mantiuk mantiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contributing this pull request.

The problem is clear but the solution is not ideal. It introduced a dependency on pandas, which we would rather avoid. It also adds duplicate functionality with the --save argument.

The new code now sorts the file names after the wildcard expansions. If this does not solve the problem, please use the interactive mode:

https://github.com/gfxdisp/ColorVideoVDP?tab=readme-ov-file#interactive-mode

@vibhoothi
Copy link
Author

What do you mean duplicate functionality of save?
Save was introduced in this PR, not sure about duplicate functionality, there was no way to save as csv in the path.

I think interactive mode is orthogonal to this PR.

We can always kill pandas if we need, it will be useful if you prefer to match like how modern tools work which supports CSV/XML/JSON and others. So it can be easy adjusted, while if we use classic CSV/filebased IO, it will be harder to support more output formats in future,
See VMAF tool for reference of multi output format

@vibhoothi
Copy link
Author

vibhoothi commented Jul 9, 2024

I also see you have b854cfc which is essentially this PR commit f081427 but a copy of it without reference to the original commit;)

Edit: would be better if it commits are cherrypicked for original authors than copying relevant lines and applying

@mantiuk
Copy link
Collaborator

mantiuk commented Jul 9, 2024

Yes, sorry, I missed f081427

We will look into how to unify the interface with VMAF at some point. But this will be a separate PR.

Right now, you can use --quiet argument to get the JOD scores alone.

@vibhoothi
Copy link
Author

b854cfc addresses this

@vibhoothi vibhoothi closed this Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants