Closed seominseok0429 closed 5 years ago
L69 in the dataloader has the details.
if self.split=='train': # random sample
offset = np.random.randint(0, len(imgs)-self.clip_len)
imgs = imgs[offset:offset+self.clip_len]
elif self.split=='val': # center crop
offset = len(imgs)//2 - self.clip_len//2
imgs = imgs[offset:offset+self.clip_len]
For training, draw 64 consecutive frames starting at a random location. For validation, take the center 64 frames. For multi-crop testing, draw 64 frames at regular intervals. See the corresponding sample() function.
Thank you very much for your kind reply. Can I ask you an i3d question unrelated to the code?
Can I ask you an i3d question unrelated to the code?
Sure, I can try to help.
I think it's good to draw 64 frames uniformly from the video. Why did you pick 64 consecutive frames starting from a random position?
Hi . I am a university student studying in South Korea. I'm confused about the code, so I leave a question. What method did you use to load the video from the data loader when you trained? For example, if you want to use 64f, If the frame is 200 frames, do you draw 64 f at regular intervals? Or is there any other way?