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
FROM nvcr.io/nvidia/l4t-pytorch:r32.4.4-pth1.6-py3 | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt update | |
RUN apt install -y cmake libgtk2.0-dev wget | |
RUN wget https://nvidia.box.com/shared/static/9eptse6jyly1ggt9axbja2yrmj6pbarc.whl -O torch-1.6.0-cp36-cp36m-linux_aarch64.whl | |
RUN python3 -m pip install torch-1.6.0-cp36-cp36m-linux_aarch64.whl | |
RUN python3 -m pip install scikit-build |
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
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04 | |
ENV DEBIAN_FRONTEND noninteractive | |
ARG OPENCV_VERSION='4.4.0' | |
ARG GPU_ARCH='6.1' | |
WORKDIR /opt | |
# Build tools | |
RUN apt update && \ |
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 glob | |
import os | |
import sys | |
import random | |
# put your own path here | |
dataset_path = sys.argv[1] | |
# Percentage of images to be used for the validation set | |
percentage_test = 20 |
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
text = "ABCDE" | |
l = len(text) | |
for s, e in itertools.combinations(range(l+1), 2): | |
print(text[s:e]) | |
""" | |
A | |
AB | |
ABC | |
ABCD |
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
version: '3.4' # to use volumes type bind | |
x-volumes: &volumes | |
- type: bind | |
source: "${JETPACK_ROOT}/usr/lib/aarch64-linux-gnu/libnvinfer.so.8.0.1" | |
target: "/usr/lib/aarch64-linux-gnu/libnvinfer.so.8.0.1" | |
read_only: true | |
- type: bind | |
source: "${JETPACK_ROOT}/usr/lib/aarch64-linux-gnu/libnvinfer_plugin.so.8.0.1" | |
target: "/usr/lib/aarch64-linux-gnu/libnvinfer_plugin.so.8.0.1" | |
read_only: true |
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
FROM nvcr.io/nvidia/l4t-base:r32.5.0 | |
ENV DEBIAN_FRONTEND=noninteractive | |
# https://qengineering.eu/install-pytorch-on-jetson-nano.html | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends \ | |
python3.8 python3.8-dev \ | |
ninja-build git cmake clang build-essential \ | |
libopenmpi-dev libomp-dev ccache \ | |
libopenblas-dev libblas-dev libeigen3-dev \ |
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
from threading import Thread | |
from time import sleep | |
mydict = {} | |
def x(): | |
while True: | |
# RuntimeError: dictionary changed size during iteration | |
for k in mydict.keys(): |
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 get_source(){ | |
source <(echo xxx=yyy) | |
} | |
get_source | |
echo $xxx |
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
SRC = rsa-mod-exp.c main.c | |
OBJ = $(SRC:%.c=%.o) | |
TARGET = rsa | |
CFLAGS += -DUSE_HOSTCC | |
$(TARGET): $(OBJ) | |
$(CC) -o $@ $^ | |
%.o:%.c | |
$(CC) $(CFLAGS) -o $@ -c $< |
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
FROM ubuntu:20.04 | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get update && \ | |
apt-get install -y \ | |
sudo pyqt5-dev-tools python3-pip \ | |
libffi-dev libssl-dev zlib1g-dev liblzma-dev tk-dev \ | |
libbz2-dev libreadline-dev libsqlite3-dev libopencv-dev \ | |
build-essential git vim wget |
OlderNewer