Skip to content

Instantly share code, notes, and snippets.

View chahuja's full-sized avatar

Chaitanya Ahuja chahuja

View GitHub Profile
@chahuja
chahuja / README.md
Created May 9, 2018 16:28 — forked from KonradIT/readme.md
GoPro Studio for Linux

####GoPro Protune correction, timelapse assembling, fisheye removal, slow motion, 4:3 to 16:9 and motion blur in Linux OS - GoPro Studio for Linux - KDEnlive, FFMPEG, ImageMagick, Mencoder and Python!

GoPro Studio has been tremendously useful for GoPro users, but not all GoPro users can enjoy the tool, there is no GoPro Studio for Linux. So some users made their ways to emulate GoPro Studio on Linux.

This guide is more than GoPro Studio, is a must read guide for Linux and GoPro users.

The main features of GoPro Studio are:

  • Convert and edit Protune footage and apply Protune effect.
  • Convert 4:3 footage to 16:9
  • Slow motion
@chahuja
chahuja / split_join_files.md
Last active January 13, 2025 15:23
Split files to parts or equal sizes and then stitch them back

Split a tar/zip file to multiple parts of size 1GB

split -b 1024m filename.tar.gz 'filename.tar.gz.part-'

Combine the split files to a single unit

Linux

cat filename.tar.gz.part-* > filename.tar.gz 
@chahuja
chahuja / pytorch-char.py
Last active May 9, 2017 03:17
pytorch-char-language model
import numpy as np
import torch
from torch.autograd import Variable
from tqdm import tqdm
num_unrolling, batch_size, vocab_size = 100, 100, 65
num_layers, rnn_size, NUM_EPOCHS = 2, 418, 100
train = torch.Tensor(np.random.rand(batch_size*10, num_unrolling, vocab_size))
y_t = torch.LongTensor(np.random.randint(low=0, high=vocab_size, size=(batch_size*10, num_unrolling)))