Skip to content

Instantly share code, notes, and snippets.

from __future__ import print_function
from nvidia.dali.pipeline import Pipeline
import nvidia.dali.ops as ops
import nvidia.dali.types as types
from nvidia.dali.plugin.pytorch import DALIGenericIterator
import logging
import os
import numpy as np
#!/bin/bash
if [ $# -lt 1 ]; then
echo "USAGE: $(basename $0) [INFILE] [NUM_THREADS]"
exit 0
fi
infile=$1
num_threads=${2:-"4"}
@Beanocean
Beanocean / .gitignore
Last active August 29, 2015 14:04 — forked from octocat/.gitignore
It's the configuration file of git, which is used to point out the files that no need to keep in git.
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #