This file contains hidden or 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
# lsf bkill all pending jobs | |
bkill `bjobs -p -o jobid | grep -v ^JOBID | tr '\n' ' '` | |
# lsf bkill jobs matching pattern | |
bkill `bjobs -w | grep MultipleGRUs2 | awk '{print $1}' | tr '\n' ' '` | |
# something to do with the largest snapshots in the directory | |
du -sh * | sort -rh | head -n 5 | awk '{print $2"/*.pt"}' | xargs -I@ sh -c 'ls @' |
This file contains hidden or 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 audioread as ar | |
import os | |
rootdir = '.' | |
audio_file_formats = ['wav', 'mp3', 'm4a'] | |
for root, subdirs, files in os.walk(rootdir): | |
for filename in files: | |
if filename[-3:] in audio_file_formats: | |
filepath = os.path.join(root, filename) |
This file contains hidden or 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
sbatch --gres=gpu:1 --partition=ziz-gpu-small slurm.sh |
This file contains hidden or 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 | |
from pathlib import Path | |
import shutil | |
import torch | |
import torch.nn as nn | |
import torch.nn.functional as F | |
import torch.optim as optim | |
import torch.utils.tensorboard | |
import torchvision |
OlderNewer