Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: typos and logic errors #108

Merged
merged 48 commits into from
Aug 7, 2024
Merged

Conversation

Epic-Eric
Copy link
Collaborator

Description

Fixes Issue #44.
Problem 1: Speech type displayed even though text is given for target.
Solution 1: Typo fix.

Problem 2: The latency metrics are the same between each pair, like LAAL is the same is LAAL_CA, where LAAL_CA should be bigger due to considering elapsed time which counts computer processing time along with delays.
Solution 2: The problem was that when “--computation-aware” argument was passed in args, it was set globally to True, causing all the metric object to take on ‘computation_aware’=True. The fix was very simple, just one line of code. In from_args which instantiates the object, I put ‘computation_aware’ to False. If it’s _CA, then it goes through a different pathway and instantiates the object directly not through from_args.

Screenshot 2024-07-28 at 12 37 05 PM
(Metrics shown are now correct)

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Successful locally. No test cases needed.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 28, 2024
@xutaima
Copy link
Contributor

xutaima commented Jul 31, 2024

Hi @Epic-Eric, thanks for the PR. Could you separate the change for the issue from the #107?

@xutaima xutaima self-requested a review July 31, 2024 14:42
with open(
self.output / "instances.log", "a"
) if self.output else contextlib.nullcontext() as file:
with (
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Black formatting change

@xutaima xutaima merged commit bcb6d85 into facebookresearch:main Aug 7, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants