import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2 . imread ( 'messi5.jpg' , 0 ) f = np . fft . fft2 ( img ) fshift = np . fft . fftshift ( f ) magnitude_spectrum = 20 * np . log ( np . abs ( fshift )) plt . subplot ( 121 ), plt . imshow ( img , cmap = 'gray' ) plt . title ( 'Input Image' ), plt . xticks ([]), plt . yticks ([]) plt . subplot ( 122 ), plt . imshow ( magnitude_spectrum , cmap = 'gray' ) plt . title ( 'Magnitude Spectrum' ), plt . xticks ([]), plt . yticks ([]) plt . show () rows , cols = img . shape crow , ccol = rows / 2 , cols / 2 fshift [ crow - 30 : crow + 30 , ccol - 30 : ccol + 30 ] = 0 f_ishift = np . fft . ifftshift ( fshift ) img_back = np . fft . ifft2 ( f_ishift ) img_back = np . abs ( img_back ) plt . subplot ( 131 ), plt . imshow ( img , cmap = 'gray' ) plt . title ( 'Input Image' ), plt . xticks ([]), ...
cudaToolkit install
답글삭제https://developer.nvidia.com/cuda-downloads
Installation Instructions:
삭제`sudo dpkg -i cuda-repo-ubuntu1404_8.0.61-1_amd64.deb`
`sudo apt-get update`
`sudo apt-get install cuda`
nvidia-smi -lms
답글삭제sudo apt-get install htop
답글삭제sudo apt-get install mc
sudo apt-get install lynx
sudo apt-get install slurm
Hangeul Install
답글삭제sudo apt-get install fonts-nanum*
cuDNN :
답글삭제https://developer.nvidia.com/cuDNN
Install CuDNN
삭제Step 1: Register an nvidia developer account and download cudnn here (about 80 MB)
Step 2: Check where your cuda installation is. For most people, it will be /urs/local/cuda/. You can check it with which nvcc.
Step 3: Copy the files:
$ cd folder/extracted/contents$ sudo cp include/cudnn.h /usr/local/cuda/include$ sudo cp lib64/libcudnn* /usr/local/cuda/lib64$ sudo chmod a+r /usr/local/cuda/lib64/libcudnn*
Check version
You might have to adjust the path. See step 2 of the installation.
$ cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2
Notes
파일구조를 보존하면서 라르파일 압축 풀기
답글삭제sudo apt-get install unrar
unrar x -r /home/work/software/myfile.rar
폴더 컬러링 하기
답글삭제sudo add-apt-repository ppa:costales/folder-color
sudo apt-get update
sudo apt-get install folder-color
After install folder color, restart nautilus file manager with the following command:
nautilus -q
파일사이즈로 지우기
답글삭제find . -name "*.gif" -size +1500k -delete
find . -name "*.gif" -size -1M -delete
명령결과 파일에 어팬드:
답글삭제th classify.lua model.t7 a1.png >> result.txt
맥에서 ll 명령어 사용
답글삭제alias ll='ls -lGh'
in ~/.bashrc
scp로 우분투 에서 파일 가져오기
답글삭제scp ubuntu@192.168.0.35:/mnt/benign_first.tar ~/Desktop/
TX1 SD카드 마운트
답글삭제sudo mount -t msdos /dev/mmcblk0p1 /mnt2
자유 메모리 보기
답글삭제$ free -m
시스템에 부하 주기
답글삭제$ stress -c 4
코어 수
$ sudo apt-get install stress
네트웍 다운로드 모니터링
답글삭제$ slurm -i eth0
$ slurm -i wlan0
$ sudo apt-get install slurm
Cuda Version:
답글삭제nvcc --version
작성자가 댓글을 삭제했습니다.
답글삭제20 best Ubuntu Theme
답글삭제http://www.linuxandubuntu.com/home/20-best-themes-for-ubuntu-in-2017
테마 설치 및 변경하기
답글삭제http://www.linuxandubuntu.com/installing-themes-in-linux.html
sudo apt-get install nautilus-open-terminal
답글삭제If you want to install it with apturl, use this URL: apt://nautilus-open-terminal
Then:
nautilus -q
You should be able to replace ls *.raw with find . -name "*.raw".
답글삭제This way, you can avoid having the wildcard expand into a huge argument list.
아큐먼트 투 롱 에러날때
https://github.com/hzeller/timg.git
답글삭제jpg, gif viewer for terminal
Download the repository.
답글삭제$ git clone git://github.com/VitaliyRodnenko/geeknote.git
$ cd geeknote
# Installation
$ [sudo] python setup.py install
# Launch Geeknote and go through login procedure.
$ geeknote login
에버노트 터미널 뷰어
Terminal Install :
답글삭제$ brew install newsbeuter
import opml:
$ newsbeuter -i export.opml
run
$ newsbeuter
터미널 RSS 리더
newsbeuter -i ~/Documents/export.opml
시동시 자동실행:
답글삭제StartUp Application 앱.
https://github.com/anmoljagetia/Flatabulous.git
답글삭제Flat theme for Ubuntu
sudo do-release-upgrade
답글삭제16.04 upgrade in terminal
1. Unity Tweak
답글삭제sudo install unity-tweak-tool
2. chrome
답글삭제1. Add Key:
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
2. Set repository:
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
3. Install package:
sudo apt-get update
sudo apt-get install google-chrome-stable
3. VLC player
답글삭제% sudo apt-get update
% sudo apt-get install vlc browser-plugin-vlc
5. shotcut (video editor)
답글삭제sudo add-apt-repository ppa:haraldhv/shotcut
sudo apt update
sudo apt install shotcut
7. peek (video to gif )
답글삭제sudo add-apt-repository ppa:peek-developers/stable
sudo apt update && sudo apt install peek
9. GitBook Editor (GitBook Workflow)
답글삭제$ npm install gitbook-cli -g
Create a book
GitBook can setup a boilerplate book:
$ gitbook init
If you wish to create the book into a new directory, you can do so by running gitbook init ./directory
Preview and serve your book using:
$ gitbook serve
Or build the static website using:
$ gitbook build
10. Ramme (Instagram client)
답글삭제https://github.com/terkelg/ramme/releases
$ sudo dpkg -i Ramme_3.0.3_amd64.deb
12. moc (terminal music player)
답글삭제sudo apt-get-install gnome-open-terminal
sudo apt-get install moc moc-ffmpeg-plugin
mocp
13. Stacer (System Optimizer)
답글삭제wget https://github.com/oguzhaninan/Stacer/releases/download/v1.0.4/Stacer_1.0.4_amd64.deb
sudo dpkg --install Stacer_1.0.4_amd64.deb
super user nautilus
답글삭제sudo apt-get install gksu
gksu nautilus
모든 상요자 프로세스 찾고 죽이기
답글삭제ps -u username
pkill -u username