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

Unable to understand average_duration > 0 and record.num_frames > self.num_segments: #216

Open
ZubairKhan001 opened this issue Feb 23, 2022 · 1 comment

Comments

@ZubairKhan001
Copy link

ZubairKhan001 commented Feb 23, 2022

Hi, i guess using two conditions in the code doesn't make same sense. in ops/dataset if average is >0, it is by default true that record.num_frames > self.num_segments. So whats the point of adding again as a condition. Someone please put some light on it.

@mikatsukons
Copy link

It may be a bit late but...
The first condition is more specific than the second one (meaning that if the 1st is true then 2nd will be true ALWAYS. However, if 2 is true doesn't mean necessarily than 1 will also be true.)
if a < 5: do something. #runs for input < 5 (a<5)
elif a < 10: do something else # runs for input less than 10 but greater or equal to 5 (5<=a<10)
else: do something different # runs for input greater or equal to 10 (a>=10)

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

No branches or pull requests

2 participants