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

dataset output question #76

Open
libingsy opened this issue Oct 27, 2019 · 0 comments
Open

dataset output question #76

libingsy opened this issue Oct 27, 2019 · 0 comments

Comments

@libingsy
Copy link

libingsy commented Oct 27, 2019

I want to ask that i create two identical dataloaders, but the dataset gets different output and the same label, it make me confused.
import numpy as np
from coviar import load

video = '/data/libing/Data/hmdb51/mpeg4_videos/sword/_Kill_Bill__Uma_Thruman_sword_fight_with_Lucy_liu_sword_f_nm_np2_ri_med_0.mp4'
num_frames = 126
gop_index = 0
gop_pos = 0

def get_frames():
len = 5
frames = np.zeros((len + 1, 256, 340, 3), dtype=np.uint8)
for i in range(len):
frames[i] = load(video, gop_index, gop_pos, 0, True)
# print(frames[len, 0, 0, 0])
return frames

def do_something():
frames = get_frames()
frames2 = get_frames()
c = frames - frames2
print(np.mean(c, axis=(1, 2, 3)))

@libingsy libingsy reopened this Oct 27, 2019
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

1 participant