We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Reproduce
from mmaction.datasets.pipelines import SampleFrames from matplotlib import pyplot as plt import numpy as np f = dict(total_frames=1000, start_index=0) s = SampleFrames(clip_len=1, num_clips=128) # Sample 1000 times a = [] for i in range(1000): a.append(s(f)['frame_inds']) a = np.stack(a) # Count occurance of each index u, counts = np.unique(a, return_counts=True) b = [] for i in range(1000): try: b.append(counts[u.tolist().index(i)]) except ValueError: b.append(0) # Plot plt.plot(b) plt.show()
outs: Comments SampleFrames will ignore tail frames because the // used:
SampleFrames
//
mmaction2/mmaction/datasets/pipelines/loading.py
Lines 142 to 143 in b8115d9
The text was updated successfully, but these errors were encountered:
Use '/' instead of '//' can be more reasonable, we will add an option to do so.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Reproduce
outs:
Comments
SampleFrames
will ignore tail frames because the//
used:mmaction2/mmaction/datasets/pipelines/loading.py
Lines 142 to 143 in b8115d9
The text was updated successfully, but these errors were encountered: