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
Powerful tools: | |
- Typora : https://typora.io/ | |
- Marp : https://marp.app/ | |
- Slides : https://slides.com/ | |
- Whimsical : https://whimsical.com/ | |
- Flameshot : https://flameshot.js.org/#/ | |
For Data Visualization: | |
- StreamLit : https://www.streamlit.io/ |
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
File = 'file_name.txt' | |
Location = '/home/chieh/(Path)' | |
File_path = os.path.join(os.path.abspath(Location), File) | |
assert os.path.isfile(File_path), "Cannot find the file_name.txt file." | |
with open(File_path, 'r') as f: | |
data = f.read().splitlines() |
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
>>>> ZSH | |
ZSH_THEME="bunnyruni" | |
plugins=(git zsh-wakatime) | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-10.0/lib64 | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/chieh/Downloads/TensorRT7_cuda100/lib | |
export CUDA_HOME=/usr/local/cuda-10.0 | |
export CUDA_INSTALL_DIR=/usr/local/cuda-10.0 | |
#export CUDNN_INSTALL_DIR=/home/chieh/Downloads/cuda_102_cudnn76 |
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 | |
import cv2 | |
import os | |
import sys | |
import requests | |
import torch | |
import detectron2 | |
#from detectron2.utils.visualizer import Visualizer | |
from detectron2.data.catalog import MetadataCatalog, DatasetCatalog |
NewerOlder