Skip to content

Instantly share code, notes, and snippets.

View ferreirafabio's full-sized avatar

Fábio Ferreira ferreirafabio

View GitHub Profile
@ferreirafabio
ferreirafabio / videofeatures-example.py
Last active April 21, 2020 04:39
full example for executing the pipeline in the py-video-features package
from videofeatures import Pipeline, ActivityNetDataset, TwentyBNDataset, ResNetFeatures, SIFTFeatures, VGGFeatures, SURFFeatures
import configparser
_base_dir = "./output"
config = configparser.ConfigParser()
config.read('config.ini')
train_dir = config['GULP']['train_data_gulp']
valid_dir = config['GULP']['valid_data_gulp']
@ferreirafabio
ferreirafabio / augment_video_ffmpeg_gamma_brightness_saturation
Last active September 11, 2018 09:42
Augment video files with ffmpeg by changing their gamma, brightness and/or saturation values
% contributors: Jonas Rothfuss and Fabio Ferreira
import itertools
import os
import subprocess
import glob
AVI_SOURCE_DIR = '/data/rothfuss/data/ArmarExperiences/videos/memory'
TARGET_DIR = '/data/rothfuss/data/ArmarExperiences/videos/memory_augmented'
@ferreirafabio
ferreirafabio / augment_video_by_crop_displacement
Created September 11, 2018 10:14
Augment videos by relative crop displacements in parallel
% Contributors: Jonas Rothfuss and Fabio Ferreira
import math
import os
import moviepy
import subprocess
import random
import glob
import multiprocessing
from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip
@ferreirafabio
ferreirafabio / rl-packages.md
Created April 24, 2019 22:56 — forked from krishpop/rl-packages.md
RL Packages and Implementations