Home
last modified time | relevance | path

Searched refs:short_edge_res (Results 1 – 3 of 3) sorted by relevance

/dports/misc/py-gluoncv/gluon-cv-0.9.0/gluoncv/torch/data/gluoncv_motion_dataset/
H A Ddataset_pre_processor.py15 def generate_resized_video(data_sample:DataSample, short_edge_res:int, overwrite=False, cache_dir=N…
18 resized_path = get_resized_video_location(data_sample,short_edge_res)
26 if not upscale and min(data_sample.width, data_sample.height) <= short_edge_res:
34 resize_and_write_video_ffmpeg(orig_vid_path, resized_path, short_edge_res, **kwargs)
125 … use_ray=False, num_cpus=4, overwrite=False, force_encode=False, short_edge_res=256, argument
H A Ddataset.py1090 def get_resized_video_location(data_sample: DataSample, short_edge_res:int) -> str:
1091 return data_sample.get_cache_file('rgb_{}_mp4'.format(short_edge_res), extension='.mp4')
/dports/misc/py-gluoncv/gluon-cv-0.9.0/gluoncv/torch/data/gluoncv_motion_dataset/io/
H A Dvideo_io.py503 def resize_and_write_video_ffmpeg(in_path, out_path, short_edge_res, argument
508 if short_edge_res is not None and raw_scale_input is not None:
511 if short_edge_res is not None:
517 scale_arg = "-2:'round( ih/min(iw,ih) * {} /2)*2'".format(short_edge_res)
549 def resize_and_write_video(file, frames, short_edge_res, fps=None): argument
563 factor = float(short_edge_res) / min(frame.size)