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 os | |
join = os.path.join | |
import numpy as np | |
import torch | |
import torch.nn.functional as F | |
from tqdm import tqdm | |
from datetime import datetime | |
from utils.utils import save_image | |
from torch.cuda.amp import custom_bwd, custom_fwd |
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
Python 🕓 24h34m ███████████████░░░░░░░░░░░░ 55.8% | |
Java 🕓 15h33m █████████▌░░░░░░░░░░░░░░░░░ 35.3% | |
Markdown 🕓 3h2m █▊░░░░░░░░░░░░░░░░░░░░░░░░░ 6.9% | |
XML 🕓 40m ▍░░░░░░░░░░░░░░░░░░░░░░░░░░ 1.5% | |
Text 🕓 4m ░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0.2% |
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 | |
function vidcut2() { | |
if (( $# < 3 )); then | |
echo "Illegal number of parameters. It should be greater than 3." | |
fi | |
name=`basename "$1"` | |
name_0="${name}_0" | |
name_1="${name}_1" | |
name_2="${name}_2" | |
name_3="${name}_3" |