Skip to content

Instantly share code, notes, and snippets.

View chiehpower's full-sized avatar
🎯
Focusing on work

CHIEH chiehpower

🎯
Focusing on work
View GitHub Profile
@chiehpower
chiehpower / Powerful tool list
Last active October 30, 2020 08:43
Powerful tool list
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/
@chiehpower
chiehpower / Give the file name and location and return the whole path
Last active August 6, 2020 07:17
Give the file name and location and return the whole path
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()
>>>> 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
@chiehpower
chiehpower / test_detect.py
Last active May 18, 2020 01:31
For detectron2 issue
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