public class Hello
{
public static void Main()
{
- System.Console.WriteLine("Hello, World!");
+ System.Console.WriteLine("Rock all night long!");
}
}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
START_TIME=$1 | |
VIDEO_PATH=$2 | |
DURATION=$3 | |
OUTPUT_DIR=$4 | |
ffmpeg -ss ${START_TIME} -i ${VIDEO_PATH} -t ${DURATION} -q:v 2 -vf select="eq(pict_type\,PICT_TYPE_I)" -vsync 0 ${OUTPUT_DIR}/%03d.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Install RVM | |
2. Set the gem folder in your shell resource file. I.e. .zshrc, .bashrc etc | |
``` | |
export GEM_HOME="$HOME/.gem" | |
``` | |
3. Install you gem gem i `LIBRARY_NAME` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
def parse_args(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-', '--', type=, | |
help='') | |
return parser.parse_args() | |
def main(args): | |
pass |
- For DDP
find_unused_parameters=False
- For optimization while training
Optimizer.zero_grad(set_to_none=False)
- CUDNN flags:
torch.backend.cudnn.enabled=True
torch.backend.cudnn.deterministic=False
torch.backend.cudnn.benchmark=True