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
# https://elinux.org/Jetson/FAQ/BSP/RootFS_Reduction#Remove_installed_deb_packages | |
## Step 1, safe | |
sudo apt update | |
sudo apt autoremove -y | |
sudo apt clean | |
sudo apt remove thunderbird libreoffice-* -y | |
## Step 2, still safe but not recommended for dev use | |
# samples |
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
from keras.datasets import mnist | |
from keras.utils import to_categorical | |
from keras.models import Sequential | |
from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPooling2D | |
(x_train, y_train), (x_test, y_test) = mnist.load_data() | |
# save input image dimensions | |
img_rows, img_cols = 28, 28 |
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 numpy as np | |
def non_max_suppression(boxes, scores, threshold): | |
assert boxes.shape[0] == scores.shape[0] | |
# bottom-left origin | |
ys1 = boxes[:, 0] | |
xs1 = boxes[:, 1] | |
# top-right target | |
ys2 = boxes[:, 2] |
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
"""coco2kitti.py: Converts MS COCO annotation files to | |
Kitti format bounding box label files | |
__author__ = "Jon Barker" | |
""" | |
import os | |
from pycocotools.coco import COCO | |
def coco2kitti(catNms, annFile): |
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
# Terminal Cheat Sheet | |
pwd # print working directory | |
ls # list files in directory | |
cd # change directory | |
~ # home directory | |
.. # up one directory | |
- # previous working directory | |
help # get help | |
-h # get help |