#参考资料
###下载单个文件,默认将输出打印到标准输出中(STDOUT)中
curl http://www.centos.org
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
import math | |
import time | |
def timeit(x, func, iter=10): | |
torch.cuda.synchronize() | |
start = time.time() |
''' | |
Sometimes it is useful to know the total number of video frames before starting to iterate. | |
This is not possible using the default video reader in Sk-video. | |
The snippet below shows how to do this using the FFMPEG reader instead. | |
''' | |
if osp.exists(video_path): | |
vid_reader = skvideo.io.FFmpegReader(video_path) # NOTE: not the standard skvideo.io.vreader | |
else: | |
raise IOError('Path to video not found: \n%s' % video_path) |
#参考资料
###下载单个文件,默认将输出打印到标准输出中(STDOUT)中
curl http://www.centos.org