Giter Club home page Giter Club logo

00self-linux_trial_and_error's Introduction

๐Ÿ”ญGraduation

  • M.S. - Intelligent Visual Computing Lab, Sejong Univ.2021.03 โ€“ Present
  • B.S. - School of Intelligent Mechatronics Engineering, Sejong University, Feb. 2021

๐Ÿ”ญ Focusing on major.

  • VideoCoding [VVC,MPEG-I(MIV),VCM]
  • DeepLearning [SuperResolution,S2VT]

๐Ÿ”ญ Environment Skills

  • C++ / Python
  • Video Understanding (TMIV/VCM/VTM)
  • pytorch, tensorflow2
  • ffmpeg(OpenSW)
  • Docker, git management

๐Ÿ”ญ Publications

International Journal

  • *โ€œImmersive Video Coding Using Deep Learning Based Specular Detectionโ€, Association for the Advancement of Artificial Intelligence (Under Review)
  • โ€œSpecular Detection and Rendering for Immersive Multimediaโ€, IEEE Multimedia (Major Revisions)
  • โ€œEfficient Video Captioning Using Quality Enhancement in Video Communication Systemsโ€, Expert Systems with Applications (Under Review)
  • โ€œLow-Complexity Two-Step Lossless Depth Coding Using Coarse Lossy Codingโ€, Multimedia Tools and Applications, Apr. 2022
  • โ€œLow-Complexity Intra Coding in Versatile Video Codingโ€, IEEE Trans. Consumer Electronics, May 2022
    *:First Order

Domestic Journal

  • *"๋ชฐ์ž…ํ˜• ์ž…์ฒด ์˜์ƒ ๋ถ€ํ˜ธํ™”๋ฅผ ์œ„ํ•œ VVC ์ธ๋ฃจํ”„ ํ•„ํ„ฐ ์„ฑ๋Šฅ ๋ถ„์„", 2022 ํ•œ๊ตญ๋ฐฉ์†ก๋ฏธ๋””์–ด๊ณตํ•™ํšŒ ์ถ”๊ณ„ํ•™์ˆ ๋Œ€ํšŒ

๐Ÿ”ญ Standardization

  • *[MPEG-I] โ€œFuture MPEG Immersive Video Coding Based on Specular Detectionโ€, m57981, Oct.2021
  • *[MPEG-I] โ€œDeep Learning Based Specular Pruningโ€, m58997, Jan.2022
  • [MPEG-I] "The crosscheck report for EE4.a in Future MIV exploration experiment", m56611, April.2021
  • [MPEG-I] "Results for EE3 on Future MIV", m57492, July.2021
  • [VVC] โ€œAHG11:Deep Neural Network for Super-Resolutionโ€, JVET-T0096, Oct.2020
  • [VCM] โ€œVVC tool combination for efficient feature map codingโ€, m60128, Jul.2022
  • [VCM] โ€œPerformance analysis of VVC inter tools for feature map codingโ€, m60127, Jul.2022
  • [VCM] โ€œPerformance analysis of VVC intra tools for feature map codingโ€, m60126, Jul.2022
    *:First Order

๐Ÿ”ญ Patents

  • [์ถœ์›] โ€œ์˜์ƒ์˜ ํ™”์งˆ์— ๋”ฐ๋ผ ์ดˆํ•ด์ƒ๋„ ๋”ฅ๋Ÿฌ๋‹ ๋„คํŠธ์›Œํฌ๋ฅผ ์ ์šฉํ•˜๋Š” ๋น„๋””์˜ค ์ฒ˜๋ฆฌ ๋ฐฉ๋ฒ• ๋ฐ ๋น„๋””์˜ค ์ฒ˜๋ฆฌ ์žฅ์น˜โ€, 10-2022-0011541


00self-linux_trial_and_error's People

Contributors

chldydgh4687 avatar

Watchers

 avatar  avatar

00self-linux_trial_and_error's Issues

[solved] [Linux] ์„ค์น˜ ํ›„ ๋ชจ๋‹ˆํ„ฐ ์ธ์‹์ด ์•ˆ๋˜๋Š” ํ˜„์ƒ (ํ˜„: 18.04 LTS)

์„ค์น˜ ํ›„ ๋ชจ๋‹ˆํ„ฐ ์ธ์‹์ด ์•ˆ๋œ๋‹ค๋ฉด, ์„ค์น˜ ๋œ linux์˜ nomodeset ์ด ์„ค์ •์ด ์•ˆ๋˜์žˆ๋Š” ๊ฒฝ์šฐ์ด๋‹ค.

ํ•ด๊ฒฐ ๋ฐฉ์•ˆ : ์•„๋ž˜ ์ด์Šˆ์˜ ์˜๊ตฌ์ ์œผ๋กœ ์„ค์ •ํ•˜๋Š” ๋ฐฉ์‹์„ ์‚ฌ์šฉํ•˜๋ฉด ๋ฆฌ๋ˆ…์Šค ๊ทธ๋ž˜ํ”ฝ์ด ์ธ์‹์„ํ•œ๋‹ค.

[Tip] [Linux]_CUDA 9.0 ์„ค์น˜(ํ˜„ : 18.04 LTS)

runfile์— ํ•ด๋‹นํ•˜๋Š” base ํŒŒ์ผ๊ณผ patchํŒŒ์ผ์„ ๋ฐ›์€ ๋’ค ํ•ด๋‹น ๊ฒฝ๋กœ๋กœ ๊ฐ€์„œ ๋‹ค์Œ์˜ ๋ช…๋ น์–ด๋ฅผ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค.
์„ค์น˜์ด์ „์— update ์™€ upgrade๋ฅผ ์ถฉ๋ถ„ํžˆ ํ•˜์‹  ๋’ค์— libraries๋ฅผ ๋‹ค์šด ๋ฐ›๊ณ  ์ง„ํ–‰ํ•˜์„ธ์š”.

$sudo apt-get install g++ freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev
$sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev libglfw3-dev libgles2-mesa-dev
$chmod a+x cuda*
$sudo ./sudo sh cuda_9.0.176_384.81_linux.run --override compiler

์ด ํ›„ cuda ์„ค๋ช…์„ ์ŠคํŽ˜์ด์Šค๋ฐ”, ์—”ํ„ฐ๋ฅผ ๋ˆ„๋ฅด๋‹ค๋ณด๋ฉด, ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์„ค์น˜ ์„ค์ •์ด ๋œจ๋Š”๋ฐ ๊ทธ๋Œ€๋กœ ์ž…๋ ฅํ•˜๋ฉด๋œ๋‹ค.

-----------------
Do you accept the previously read EULA?
accept/decline/quit: accept          

You are attempting to install on an unsupported configuration. Do you wish to continue?
(y)es/(n)o [ default is no ]: y

Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 384.81?
(y)es/(n)o/(q)uit: n

Install the CUDA 9.0 Toolkit?
(y)es/(n)o/(q)uit: y

Enter Toolkit Location
 [ default is /usr/local/cuda-9.0 ]: 

Do you want to install a symbolic link at /usr/local/cuda?
(y)es/(n)o/(q)uit: y

Install the CUDA 9.0 Samples?
(y)es/(n)o/(q)uit: y

Enter CUDA Samples Location
 [ default is /home/ivcl ]: 

Installing the CUDA Toolkit in /usr/local/cuda-9.0 ...
Installing the CUDA Samples in /home/ivcl ...
Copying samples to /home/ivcl/NVIDIA_CUDA-9.0_Samples now...
Finished copying samples.

===========
= Summary =
===========

Driver:   Not Selected
Toolkit:  Installed in /usr/local/cuda-9.0
Samples:  Installed in /home/ivcl

Please make sure that
 -   PATH includes /usr/local/cuda-9.0/bin
 -   LD_LIBRARY_PATH includes /usr/local/cuda-9.0/lib64, or, add /usr/local/cuda-9.0/lib64 to /etc/ld.so.conf and run ldconfig as root

To uninstall the CUDA Toolkit, run the uninstall script in /usr/local/cuda-9.0/bin

Please see CUDA_Installation_Guide_Linux.pdf in /usr/local/cuda-9.0/doc/pdf for detailed information on setting up CUDA.

***WARNING: Incomplete installation! This installation did not install the CUDA Driver. A driver of version at least 384.00 is required for CUDA 9.0 functionality to work.
To install the driver using this installer, run the following command, replacing <CudaInstaller> with the name of this run file:
    sudo <CudaInstaller>.run -silent -driver

Logfile is /tmp/cuda_install_15209.log

์œ„ Summary ์ฒ˜๋Ÿผ Toolkit๊ณผ sampoles๊ฐ€ ์ œ๋Œ€๋กœ ์žกํžˆ๋ฉด ์„ฑ๊ณต์ด๋‹ค. ์–ด๋– ํ•œ ๋ถ€์ •์–ด๊ฐ€ ๋– ์„œ ์œ„์™€ ๋‹ค๋ฅผ ๊ฒฝ์šฐ ์•„๋ž˜๋ฅผ ์ฐธ๊ณ ํ•˜์—ฌ ์œ„์™€ ๊ฐ™์€ ํ™”๋ฉด์„ ๋„์šฐ๋„๋ก ํ•œ๋‹ค. ์ด์ œ ํŒจ์น˜๋ฅผ ์„ค์น˜๋„ ๋˜‘๊ฐ™์€ ๋ฐฉ๋ฒ•์œผ๋กœ ์„ค์น˜ํ•œ ์ด ํ›„ cuda์˜ ๊ฒฝ๋กœ๋ฅผ ์„ค์ •ํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

[Solved] [S2VT] RuntimeError: The ffmpeg plugin does not work on Python 2.x

Traceback (most recent call last):
File "/home/ivcl/Desktop/git/video-captioning/s2vt_sample.py", line 30, in
extract_feats(video_path+'test_m.mp4',4)
File "/home/ivcl/Desktop/git/video-captioning/Extract_Feats.py", line 34, in extract_feats
vid = imageio.get_reader(file,'mkv')
File "/home/ivcl/anaconda2/envs/ai/lib/python2.7/site-packages/imageio/core/functions.py", line 186, in get_reader
return format.get_reader(request)
File "/home/ivcl/anaconda2/envs/ai/lib/python2.7/site-packages/imageio/core/format.py", line 164, in get_reader
return self.Reader(self, request)
File "/home/ivcl/anaconda2/envs/ai/lib/python2.7/site-packages/imageio/core/format.py", line 214, in init
self._open(**self.request.kwargs.copy())
File "/home/ivcl/anaconda2/envs/ai/lib/python2.7/site-packages/imageio/plugins/ffmpeg.py", line 261, in _open
self._ffmpeg_api = _get_ffmpeg_api()
File "/home/ivcl/anaconda2/envs/ai/lib/python2.7/site-packages/imageio/plugins/ffmpeg.py", line 61, in _get_ffmpeg_api
raise RuntimeError("The ffmpeg plugin does not work on Python 2.x")
RuntimeError: The ffmpeg plugin does not work on Python 2.x

[Solved]caffe_ImportError_ (Saving my bashrc, makeconfig)

Installed my spec

  • graphics
    2080 TI GRAPHICS (440.44)
    CUDA 9.0 (17.04 LTS)
    CUDNN 7.4.2

  • python
    PYTHON 2.7 ANACONDA2
    TENSORFLOW-GPU 1.12

  • caffe
    you will pass the 'make all - make pycaffe' 'caffe path' course.

Problem is

when you typed 'import caffe' in python shell,
If ImportError occur, maybe This problem is ~./bashrc path problem.


1. how to typing a number of path.

ex) LD_LIBRARY_PATH

2. This export part is the most important part.

caffe import error happen to wrong PYTHONPATH
lib import error, protobuf error happen to LD_LIBRARY_PATH
keep attention to your ~/.bashrc

export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/home/ivcl/anaconda2/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/ivcl/caffe/distribute/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/ivcl/caffe/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.0/lib64
export PYTHONPATH=/home/ivcl/caffe/python

This is my ~/.bashrc
please refer to something at your work.

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
    xterm-color|*-256color) color_prompt=yes;;
esac

# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes

if [ -n "$force_color_prompt" ]; then
    if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
	# We have color support; assume it's compliant with Ecma-48
	# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
	# a case would tend to support setf rather than setaf.)
	color_prompt=yes
    else
	color_prompt=
    fi
fi

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    ;;
*)
    ;;
esac

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
    alias ls='ls --color=auto'
    #alias dir='dir --color=auto'
    #alias vdir='vdir --color=auto'

    alias grep='grep --color=auto'
    alias fgrep='fgrep --color=auto'
    alias egrep='egrep --color=auto'
fi

# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'

# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'

# Add an "alert" alias for long running commands.  Use like so:
#   sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
  fi
fi

export PATH=/usr/local/cuda-9.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/home/ivcl/anaconda2/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/ivcl/caffe/distribute/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/ivcl/caffe/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-9.0/lib64
export PYTHONPATH=/home/ivcl/caffe/python

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/ivcl/anaconda2/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/home/ivcl/anaconda2/etc/profile.d/conda.sh" ]; then
        . "/home/ivcl/anaconda2/etc/profile.d/conda.sh"
    else
        export PATH="/home/ivcl/anaconda2/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

And This is my caffe/Makefile.config

# USE_OPENCV := 0
# USE_LEVELDB := 0
# USE_LMDB := 0
# This code is taken from https://github.com/sh1r0/caffe-android-lib
# USE_HDF5 := 0

# uncomment to allow MDB_NOLOCK when reading LMDB files (only if necessary)
#	You should not set this flag if you will be reading LMDBs with any
#	possibility of simultaneous read and write
# ALLOW_LMDB_NOLOCK := 1

# Uncomment if you're using OpenCV 3
OPENCV_VERSION := 3

# To customize your choice of compiler, uncomment and set the following.
# N.B. the default for Linux is g++ and the default for OSX is clang++
# CUSTOM_CXX := g++

# CUDA directory contains bin/ and lib/ directories that we need.
CUDA_DIR := /usr/local/cuda
# On Ubuntu 14.04, if cuda tools are installed via
# "sudo apt-get install nvidia-cuda-toolkit" then use this instead:
# CUDA_DIR := /usr

# CUDA architecture setting: going with all of them.
# For CUDA < 6.0, comment the *_50 through *_61 lines for compatibility.
# For CUDA < 8.0, comment the *_60 and *_61 lines for compatibility.
# For CUDA >= 9.0, comment the *_20 and *_21 lines for compatibility.
CUDA_ARCH := 
#-gencode arch=compute_20,code=sm_20 \
#-gencode arch=compute_20,code=sm_21 \
		-gencode arch=compute_30,code=sm_30 \
		-gencode arch=compute_35,code=sm_35 \
		-gencode arch=compute_50,code=sm_50 \
		-gencode arch=compute_52,code=sm_52 \
		-gencode arch=compute_60,code=sm_60 \
		-gencode arch=compute_61,code=sm_61 \
		-gencode arch=compute_61,code=compute_61

# BLAS choice:
# atlas for ATLAS (default)
# mkl for MKL
# open for OpenBlas
BLAS := atlas
# Custom (MKL/ATLAS/OpenBLAS) include and lib directories.
# Leave commented to accept the defaults for your choice of BLAS
# (which should work)!
# BLAS_INCLUDE := /path/to/your/blas
# BLAS_LIB := /path/to/your/blas

# Homebrew puts openblas in a directory that is not on the standard search path
# BLAS_INCLUDE := $(shell brew --prefix openblas)/include
# BLAS_LIB := $(shell brew --prefix openblas)/lib

# This is required only if you will compile the matlab interface.
# MATLAB directory should contain the mex binary in /bin.
# MATLAB_DIR := /usr/local
# MATLAB_DIR := /Applications/MATLAB_R2012b.app

# NOTE: this is required only if you will compile the python interface.
# We need to be able to find Python.h and numpy/arrayobject.h.
#PYTHON_INCLUDE := /usr/include/python2.7 \
		/usr/lib/python2.7/dist-packages/numpy/core/include
# Anaconda Python distribution is quite popular. Include path:
# Verify anaconda location, sometimes it's in root.
ANACONDA_HOME := /home/ivcl/anaconda2
PYTHON_INCLUDE := $(ANACONDA_HOME)/include \
		 $(ANACONDA_HOME)/include/python2.7 \
		 $(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include

# Uncomment to use Python 3 (default is Python 2)
# PYTHON_LIBRARIES := boost_python3 python3.5m
# PYTHON_INCLUDE := /usr/include/python3.5m \
#                 /usr/lib/python3.5/dist-packages/numpy/core/include

# We need to be able to find libpythonX.X.so or .dylib.
#PYTHON_LIB := /usr/lib
PYTHON_LIB := $(ANACONDA_HOME)/lib

# Homebrew installs numpy in a non standard path (keg only)
# PYTHON_INCLUDE += $(dir $(shell python -c 'import numpy.core; print(numpy.core.__file__)'))/include
# PYTHON_LIB += $(shell brew --prefix numpy)/lib

# Uncomment to support layers written in Python (will link against Python libs)
# WITH_PYTHON_LAYER := 1

# Whatever else you find you need goes here.
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial
LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib/x86_64-linux-gnu/hdf5/serial

# If Homebrew is installed at a non standard location (for example your home directory) and you use it for general dependencies
# INCLUDE_DIRS += $(shell brew --prefix)/include
# LIBRARY_DIRS += $(shell brew --prefix)/lib

# NCCL acceleration switch (uncomment to build with NCCL)
# https://github.com/NVIDIA/nccl (last tested version: v1.2.3-1+cuda8.0)
# USE_NCCL := 1

# Uncomment to use `pkg-config` to specify OpenCV library paths.
# (Usually not necessary -- OpenCV libraries are normally installed in one of the above $LIBRARY_DIRS.)
# USE_PKG_CONFIG := 1

# N.B. both build and distribute dirs are cleared on `make clean`
BUILD_DIR := build
DISTRIBUTE_DIR := distribute

# Uncomment for debugging. Does not work on OSX due to https://github.com/BVLC/caffe/issues/171
# DEBUG := 1

# The ID of the GPU that 'make runtest' will use to run unit tests.
TEST_GPUID := 0

# enable pretty build (comment to see full commands)
Q ?= @

[Solved]caffe_python/caffe/_caffe.cpp:1:52: fatal error: Python.h: No such file or directory ์˜ค๋ฅ˜

make all # ์ดํ›„
make pycaffe #ํ•  ๊ฒฝ์šฐ ์˜ค๋ฅ˜
CXX/LD -o python/caffe/_caffe.so python/caffe/_caffe.cpp
python/caffe/_caffe.cpp:1:52: fatal error: Python.h: No such file or directory
 #include <Python.h>  // NOLINT(build/include_alpha)
                                                    ^
compilation terminated.
Makefile:517: recipe for target 'python/caffe/_caffe.so' failed
make: *** [python/caffe/_caffe.so] Error 1

ํ•ด๊ฒฐ์ค‘...

[TIP][Linux] ์••์ถ•,ํ•ด์ œ

$sudo apt-get install unzip
$sudo apt-get install unrar
#ํ˜„์žฌ ํ’€๋”์— ๊ทธ๋Œ€๋กœ ๋””๋ ‰ํ† ๋ฆฌ ๋ฌด์‹œํ•˜๊ณ  ๋ชจ๋“  ํŒŒ์ผ ์••์ถ•ํ•ด์ œ
$unrar e 'ํŒŒ์ผ๋ช…'.rar
#ํ˜„์žฌ ํ’€๋”์— ๋””๋ ‰ํ† ๋ฆฌ ๊ตฌ์กฐ ์ ์šฉํ•˜๊ณ  ๋ชจ๋“  ํŒŒ์ผ ์••์ถ•ํ•ด์ œ
$unrar x 'ํŒŒ์ผ๋ช…'.rar

[TIP]Linux ์™ธ์žฅํ•˜๋“œ ๋งˆ์šดํŠธ (ํ˜„ : 18.04)

์™ธ์žฅํ•˜๋“œ ์—ฐ๊ฒฐํ›„์— #๋ฃจํŠธ๋ชจ๋“œ์—์„œ

mkdir ๋งˆ์šดํŠธ์‹œํ‚ค๋ ค๋Š”ํ’€๋”
cat /proc/partitions
#๋งˆ์ง€๋ง‰ ๋‘์ค„์ด ์™ธ์žฅํ•˜๋“œ์ผ ๊ฒƒ์ž„.
mount -t exfat /dev/sdb1 ์ƒ์„ฑํ•œํ’€๋”๊ฒฝ๋กœ

# mount: unknown filesystem type 'exfat' ์—๋Ÿฌ์ผ ๊ฒฝ์šฐ
apt-get install exfat-fuse exfat-utils ์„ค์น˜ ํ›„ ๋‹ค์‹œ ํ•ด๋ณด๊ธฐ

reference link

https://blackcon.tistory.com/49
https://askubuntu.com/questions/1125158/cannot-mount-usb-hard-drive

[Tip] ์šฐ๋ถ„ํˆฌ ํ•œ๊ธ€ ์„ค์ •

  1. ์œˆ๋„์šฐํ‚ค๋ฅผ ํ†ตํ•˜์—ฌ, language support ๊ฒ€์ƒ‰

  2. Install๋ฅผ ํ†ตํ•ด korean ์„ ์„ค์น˜ํ•œ๋‹ค.

  3. sudo reboot ์žฌ๋ถ€ํŒ…

  4. settings - language ๋ถ€๋ถ„์—์„œ korean(hangul) ์„ ์ถ”๊ฐ€

  5. ํ„ฐ๋ฏธ๋„ ์ฐฝ์—์„œ ibus-setup ์— ํ•œ๊ธ€์„ ์ถ”๊ฐ€!

  6. ์šฐ์ธก ์œ„์— ํ•œ/์˜ํ‚ค ๋ฐ”๋€Œ๋Š” ๊ณณ์— set up์„ ํ†ตํ•˜์—ฌ ๋‹จ์ถ•ํ‚ค๋ฅผ 'ํ•œ/์˜' ํ‚ค๋กœ ์„ค์ •ํ•œ๋‹ค.

[TIP] [Linux] ์šฐ๋ถ„ํˆฌ์—์„œ ๋ชจ๋“  ์„ธํŒ…์„ ์™„๋ฃŒํ–ˆ๋‹ค๋ฉด ์—…๋ฐ์ดํŠธ ๋ฐ˜๋“œ์‹œ ๋„๊ธฐ

[TIP] ์šฐ๋ถ„ํˆฌ์—์„œ ๋ชจ๋“  ์„ธํŒ…์„ ์™„๋ฃŒํ–ˆ๋‹ค๋ฉด ์—…๋ฐ์ดํŠธ ๋ฐ˜๋“œ์‹œ ๋„๊ธฐ

Software & updates ์—์„œ Nerver ์„ธํŒ…!!

Screenshot from 2020-01-21 21-25-02

update๋ฅผ ํ•˜๋ฉด์„œ gcc ananconda ๋“ฑ๋“ฑ ์„ค์ •์ด ๋ฐ”๋€” ์ˆ˜ ์žˆ์Œ.

[solved] [Linux] USB๋ถ€ํŒ… ํ”„๋ฆฌ์ง•ํ˜„์ƒ (ํ˜„ : 18.04 LTS)

BIOS ์—์„œ ์„ค์น˜ํ•  ๋•Œ ubuntu ๋กœ๋”ฉ ํ™”๋ฉด์—์„œ ๋„˜์–ด๊ฐ€์ง€์•Š๊ณ  ํ•œ์นธ์—์„œ ๋ฉˆ์ถฐ๋ฒ„๋ฆฌ๋Š” ํ˜„์ƒ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

์ด๋Š” ๊ธฐ์กด์˜ nvidia ๊ทธ๋ž˜ํ”ฝ ๋“œ๋ผ์ด๋ฒ„์™€ ๋ฆฌ๋ˆ…์Šค ๋“œ๋ผ์ด๋ฒ„๊ฐ€ ์ถฉ๋Œํ•˜๋Š” ๊ฒƒ์ด๋ผ ํ•ฉ๋‹ˆ๋‹ค.

ํ•ด๊ฒฐ๋ฐฉ๋ฒ• : ๋ฉ”๋‰ด ์„ ํƒํ•˜๋Š” GRUB ๋ถ€๋ถ„์—์„œ 'e' ๋ฅผ ๋ˆŒ๋Ÿฌ

~~splash ์˜†๋ถ€๋ถ„์— nomodeset ๋ฅผ ์ถ”๊ฐ€์‹œํ‚จ ํ›„ F10 ์„ ๋ˆŒ๋Ÿฌ ๋ถ€ํŒ…์„ ์‹œํ‚ค์‹œ๊ณ  ์„ค์น˜ ์ง„ํ–‰ํ•˜์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค.

[Solved]caffe_ImportError: No module named skimage.io

Python 2.7.17 |Anaconda, Inc.| (default, Oct 21 2019, 19:04:46)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import caffe
Traceback (most recent call last):
File "", line 1, in
File "/home/yonge/caffe/python/caffe/init.py", line 1, in
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer
File "/home/yonge/caffe/python/caffe/pycaffe.py", line 15, in
import caffe.io
File "/home/yonge/caffe/python/caffe/io.py", line 2, in
import skimage.io
ImportError: No module named skimage.io

[Solved] [Linux] ANACONDA2 conda ๋ช…๋ น์–ด์—๋Ÿฌ( NotWritableError: The current user does not have write permissions...)

๊ฐ€์ƒํ™˜๊ฒฝ ์ƒ์„ฑํ•˜๋Š” ๋ช…๋ น์–ด๋ฅผ ์ณค๋‹ค

conda create --name ai python=2.7

[Problem]

NotWritableError: The current user does not have write permissions to a required path.
  path: /home/yonge/.conda/envs/.conda_envs_dir_test
  uid: 1000
  gid: 1000

If you feel that permissions on this path are set incorrectly, you can manually
change them by executing

  $ sudo chown 1000:1000 /home/yonge/.conda/envs/.conda_envs_dir_test

In general, it's not advisable to use 'sudo conda'.

[Solved]
๋‹ค์Œ์˜ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜๊ณ  ํ•ด๊ฒฐ๋ฌ๋‹ค.

sudo chown -R '์‚ฌ์šฉ์ž' anaconda2

conda config --add channels conda-canary
conda update -n base conda

[Tip]_cudnn7.4.2_(CUDA 9.0) ์„ค์น˜

๊ตฌ๊ธ€์— cudnn ์„ค์น˜๋ฅผ ์ฐพ์•„๋ณด๋ฉด ํšŒ์›๊ฐ€์ž…๊ณ  ๊ฐ ๋ฒ„์ „์ด ์žˆ๋Š” archive note ๊ฐ™์€ ๊ณณ์œผ๋กœ ๊ฐ€๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ๋‹ค. ๊ทธ ์ดํ›„ 7.4.2 ์—์„œ ์ „์— ์„ค์น˜ํ•œ cuda ๋ฒ„์ „์— ๋ฆฌ๋ˆ…์Šค์— ํ•ด๋‹นํ•˜๋Š” ๋ฒ„์ „์„ ๋‹ค์šด๋ฐ›๋Š”๋‹ค.

image

[TIP] [Linux] Tensorflow_GPU ํ• ๋‹น

1.ํ„ฐ๋ฏธ๋„์—์„œ python code๋ฅผ ์‹คํ–‰ํ•˜๋Š” ๊ฒฝ์šฐ:

$ CUDA_VISIBLE_DEVICES=0 python script.py  
$ CUDA_VISIBLE_DEVICES=1 python script.py  
$ CUDA_VISIBLE_DEVICES=2,3 python script.py 
  1. ์ฝ”๋“œ์— ์ง์ ‘ python code๋ฅผ ๋„ฃ๋Š” ๋ฐฉ๋ฒ•:
import os

os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"   
os.environ["CUDA_VISIBLE_DEVICES"]="0"

[SOLVED][pytorch]THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument

link : pytorch/pytorch#15797

    I have the same issue. RTX2080, for CUDA 10.0 and pytorch 1.0.0. Anyone has solved the same problem please provide the information of the solution. It would help a lot of people. Thanks!

Okay I have solve the problem. You cannot directly install pytorch, instead โ€œpip3 install -U https://download.pytorch.org/whl/cu100/torch-1.0.0-cp36-cp36m-linux_x86_64.whlโ€ work for me.

IN MY CASE,

โ€œpip3 install -U https://download.pytorch.org/whl/cu90/torch-1.0.0-cp36-cp36m-linux_x86_64.whl"
it works for me.

[Tip] ๋„์ปค ์„ค๋ช…์„œ (์ž‘์„ฑ์ค‘..)

๋„์ปค ์„ค์น˜๋ฅผ ์œ„ํ•œ curl ์„ค์น˜

$ sudo apt-get install -y curl


๋„์ปค ์„ค์น˜

$ curl -fsSL https://get.docker.com/ | sudo sh


๋„์ปค ๊ถŒํ•œ ๋ถ€์—ฌ

$ sudo usermod -aG docker $USER #ํ˜„์žฌ ์ ‘์†์ค‘์ธ ์‚ฌ์šฉ์ž์—๊ฒŒ ๊ถŒํ•œ์ฃผ๊ธฐ
$ sudo usermod -aG docker your-user #your-user ์‚ฌ์šฉ์ž์—๊ฒŒ ๊ถŒํ•œ์ฃผ๊ธฐ


์ปจํ…Œ์ด๋„ˆ ๋ช…๋ น์–ด

  • ๋„์ปค ์ปจํ…Œ์ด๋„ˆ ๋ฆฌ์ŠคํŠธ ํ™•์ธ

$ docker ps -a

  • ๋„์ปค ์ปจํ…Œ์ด๋„ˆ ์‚ญ์ œ

$ docker rm (์ปจํ…Œ์ด๋„ˆID or ์ด๋ฆ„)

  • ๋„์ปค ์ปจํ…Œ์ด๋„ˆ ์ „์ฒด ์‚ญ์ œ

$ docker rm -v $(docker ps -a -q -f status=exited)


์„œ๋ฒ„๋ฅผ ์œ„ํ•œ OS ๋ณต์ œ

  1. ์„œ๋ฒ„ ์ด๋ฏธ์ง€ํ™” ์‹œํ‚ค๊ธฐ
$ sudo su
# tar --numeric-owner --exclude=/proc --exclude=/sys -cvf linux_18.04_server_org.tar /
  1. docker ์„œ๋ฒ„๋กœ tar ํŒŒ์ผ์„ ๋ณต์‚ฌ ํ›„ docker์— import
  • ์˜ค๋ž˜๊ธฐ๋‹ฌ๋ฆฌ๊ธฐ.. cat์˜ ๋ช…๋ น์ค„์„ ์น˜๋ฉด ์•„๋ž˜์™€ ๊ฐ™์€ ๊ฒฐ๊ณผ๊ฐ€ ๋‚˜์˜ด.
# cat linux_18.04_server_org.tar | docker import - linux_18.04_server_org linux_18.04_server_org

sha256:9317820ec092145201488f9b5686093407b4fcb939cabbff39631ba3afac07c9
  1. import ์ •์ƒ ํ™•์ธ
# docker run -i -t linux_18.04_server_org /bin/bash

docker hub์— ์ด๋ฏธ์ง€ ๋ณด๋‚ด์ฃผ๊ธฐ

$ docker tag (์ด๋ฏธ์ง€ ์ด๋ฆ„) (๊ณ„์ •์ •๋ณด)/(repository):(hub์— ์ƒ์„ฑํ•  ์ด๋ฆ„)
ex) docker tag linux_18.04_server_org chldydgh4687/ivcl_server:linux_18.04_server_org

$ docker push (๊ณ„์ •์ •๋ณด)/(repository):(hub์— ์ƒ์„ฑํ•œ ์ด๋ฆ„)
ex) docker push chldydgh4687/ivcl_server:linux_18.04_server_org


docker hub์—์„œ ์ด๋ฏธ์ง€ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ

$ docker pull (๊ณ„์ •์ •๋ณด)/(repository):(hub์— ์žˆ๋Š” ์ด๋ฏธ์ง€ ์ด๋ฆ„)

ex) docker pull chldydgh4687/ivcl_server:linux_18.04_server_org


docker ์ด๋ฏธ์ง€ ํ™•์ธ

$ docker images

docker ์ด๋ฏธ์ง€ ์‚ญ์ œ

$ docker rmi (์ด๋ฏธ์ง€์ด๋ฆ„) or (์ด๋ฏธ์ง€_id)

์ด๋ฏธ์ง€ pull ์ดํ›„ ์‚ฌ์šฉํ•˜๊ธฐ

$ docker run -it --name (์›ํ•˜๋Š”์ด๋ฆ„) (์ด๋ฏธ์ง€ repository) /bin/bash

  • /bin/bash : ํ•ด๋‹น ์ปจํ…Œ์ด๋„ˆ์˜ bash shell์„ ์‹คํ–‰(dockfile)
    ex) docker run -it --name yhchoi linux_18.04_server_org /bin/bash

exit ํ•˜๊ณ  ๋น ์ ธ๋‚˜์™€์„œ ๋‹ค์‹œ ์‹œ์ž‘ํ•  ๋•Œ

$ docker restart yhchoi
$ docker attach yhchoi
$ docker restart (์ด์ „์— ์ง€์ •ํ–ˆ๋˜ ์ด๋ฆ„)


์ด๋ฏธ์ง€ ๋ฎ์–ด์“ฐ๊ธฐ (ํ•˜๊ณ ์žˆ๋Š” ์ค‘..!)

[Solved] [Linux] ์„ค์น˜ ํ›„ settings ๋ฐ lspci ๋“ฑ๋“ฑ ์ผ๋ถ€ ๋ช…๋ น์–ด ๋ฉˆ์ถค ํ˜„์ƒ (ํ˜„: 18.04 LTS, 16.04LTS)

linux ์„ค์น˜ ํ›„ settings ์„ ๋ˆ„๋ฅด๋ฉด ๋งˆ์šฐ์Šค๋งŒ ์›€์ง์ด๊ณ  ๋ชจ๋“  ๊ฒƒ์ด ๋ฉˆ์ถ˜๋‹ค.

lspci -k ์žฅ์น˜๋ฅผ ๊ฒ€์ƒ‰ํ•˜๋Š” ๋ช…๋ น์–ด ํ˜น์€ ์ผ๋ถ€ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ–ˆ์„ ๊ฒฝ์šฐ ์ถœ๋ ฅ์„ ํ•˜์ง€ ๋ชปํ•˜๊ณ  ์—๋Ÿฌ๋ฉ”์‹œ์ง€๋„ ๋œจ์ง€ ์•Š๊ณ  ๋‹ค์‹œ ์ž…๋ ฅ ์ฐฝ์œผ๋กœ๋„ ๋Œ์•„์˜ค์ง€ ์•Š๋Š”๋‹ค.

ํ•ด๊ฒฐ์ค‘...

[TIP][Linux] ๊ตฌ๊ธ€ ๋“œ๋ผ์ด๋ธŒ ํŒŒ์ผ ๋‹ค์šด๋กœ๋“œ๋ฐ›๊ธฐ shell ๋ช…๋ น์–ด

* ์ผ๋ฐ˜ ํฌ๊ธฐ์˜ ํŒŒ์ผ

wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O FILENAME

 

* ํฐ ํฌ๊ธฐ์˜ ํŒŒ์ผ ("ํŒŒ์ผ์ด ๋„ˆ๋ฌด ์ปค์„œ Google์—์„œ ๋ฐ”์ด๋Ÿฌ์Šค๋ฅผ ๊ฒ€์‚ฌํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ๊ทธ๋ž˜๋„ ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œํ•˜์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ?" ๋ผ๊ณ  ๋œจ๋Š” ํŒŒ์ผ๋“ค)

curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=FILEID" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=FILEID" -o FILDNAME

[Solved]caffe_ImportError: No module named caffe

๋‹ค๋ฅธ ์—๋Ÿฌ๊ฐ€ ์•„๋‹ˆ๊ณ 

$ make all
$ make pycaffe 

๊นŒ์ง€ ์™„๋ฒฝํ•˜๊ฒŒ ์ง„ํ–‰๋˜์—ˆ์„ ๋•Œ python ์—์„œ import๊ฐ€ ์•ˆ๋˜๋Š” ๊ฒฝ์šฐ์ด๋‹ค.

ERROR

import caffe
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named caffe

python ์—์„œ caffe๋ฅผ ๋ชป์ฐพ์„ ๊ฒฝ์šฐ์ผ ๊ฐ€๋Šฅ์„ฑ์ด ํฌ๋‹ค.

[Solved]caffe_protobuf: no such file or directory

caffe make ์ค‘์— ๋œจ๋Š” ์˜ค๋ฅ˜

CXX .build_release/src/caffe/proto/caffe.pb.cc
In file included from .build_release/src/caffe/proto/caffe.pb.cc:4:0:
.build_release/src/caffe/proto/caffe.pb.h:10:40: fatal error: google/protobuf/port_def.inc: No such file or directory
 #include <google/protobuf/port_def.inc>
                                        ^
compilation terminated.
Makefile:598: recipe for target '.build_release/src/caffe/proto/caffe.pb.o' failed
make: *** [.build_release/src/caffe/proto/caffe.pb.o] Error 1

[Tip] [Linux] ๋ฉ€ํ‹ฐ๋ถ€ํŠธ ์„ค์น˜ ์ •๋ฆฌ (ํ˜„ : 18.04 LTS, Windows 10)

๊ธฐ์กด์˜ UEFI ๋ชจ๋“œ์ผ ๋•Œ, WIindow Boot Manager์ด ๋ณด์ผ ๋•Œ,

์šฐ์„  bios ์—์„œ ์šฐ์„ ์ˆœ์œ„๋กœ usb๋ฅผ ์„ค์ • ํ›„, bios ๋“ค์–ด๊ฐ€๊ธฐ ์ „ ๋‹จ๊ณ„์—์„œ shift, f10์„ ๋ˆ„๋ฅด๊ณ  ์žˆ์œผ๋ฉด, grub ๋ฉ”๋‰ด๊ฐ€ ๋œฌ๋‹ค. ์ด ๋•Œ 'e' ๋ฅผ ๋ˆŒ๋Ÿฌ splash ์˜† nomodeset์„ ์ž‘์„ฑํ•˜๊ณ  f10์„ ๋ˆ„๋ฅธ๋‹ค.

18.04 ๋ฒ„์ „์—์„œ swap ๋ฒ„์ „์„ ๋งŒ๋“ค์ง€ ์•Š์•„๋„ ๋˜๋ฏ€๋กœ (512mb /์ฃผ/efi/) ์œผ๋กœ ํ•˜๋‚˜๋ฅผ ์„ค์ •ํ•˜๊ณ ,
๋‚˜๋จธ์ง€ ์šฉ๋Ÿ‰์„ (์ฃผ/ex4/ ํŒŒ์ผ ๊ฒฝ๋กœ: / )๋กœ ์„ค์ •ํ•ด์ค€๋‹ค.

์ด ํ›„ shift, f10์„ ํ•œ๋ฒˆ ๋” ๋ˆŒ๋Ÿฌ์„œ nomodeset์œผ๋กœ ๋ฆฌ๋ˆ…์Šค์— ์ ‘์†ํ•˜๊ณ ,

๋๋‚˜๋ฉด ๋ฐ˜๋“œ์‹œ
$sudo gedit /etc/default/grub

#..hidden ์ด ๊ณณ์— ์ฃผ์„์ฒ˜๋ฆฌ
splash ์˜†์— nomodeset์„ ์“ฐ๊ณ  ์ €์žฅํ•œ๋‹ค.

๋ฉ€ํ‹ฐ๋ถ€ํŠธ๋ฅผ ์„ค์น˜ํ•  ๋•Œ, Window Boot Manager ๊ฐ€ ubuntu ํŒŒํ‹ฐ์…˜์—์„œ ๋œจ์ง€ ์•Š๋Š” ๊ฒฝ์šฐ

๋ณธ ์œˆ๋„์šฐ USB๊ฐ€ CSM ๋ชจ๋“œ์—์„œ ๋จนํ˜€์„œ ์„ค์น˜ํ–ˆ๋Š”๋ฐ ์šฐ๋ถ„ํˆฌ๋กœ ๋ฉ€ํ‹ฐ๋ถ€ํŠธ ๊น” ๋•Œ, Window boot manager๊ฐ€ ๋ณด์ด์ง€ ์•Š์•˜์Œ.

์ด๋Š” legacy ๋ชจ๋“œ๋กœ ์œˆ๋„์šฐ๊ฐ€ ์„ค์น˜๋œ ๊ฒƒ์ž„์œผ๋กœ ์šฐ๋ถ„ํˆฌ ๋˜ํ•œ legacy ๋ชจ๋“œ๋กœ ๊ธฐ์กด์˜ csm ์—์„œ ์œ„์— ํ•ด๋‹นํ•˜๋Š” ์šฐ๋ถ„ํˆฌ usb๋ฅผ ์„ ํƒํ•˜์—ฌ ๊น๋‹ค. ๊ธฐ์กด์— UEFI ์—์„œ ๋ณด๋˜ ๋ฉ”๋‰ด์™€๋Š” ๋‹ค๋ฅด๋‹ค. ์ด ๋•Œ, ๊ธฐ์กด์˜ nomodeset ์€ F6์„ ๋ˆ„๋ฅด๋ฉด ์•„๋ž˜์— boot options = ,... ์ƒ๊ธฐ๋Š”๋ฐ ์ด ์ค„์—์„œ splash ์˜†์— nomodeset์„ ์น˜๊ณ  ์—”ํ„ฐ๋ฅผ ๋ˆ„๋ฅด๋ฉด ์„ค์น˜๋ชจ๋“œ๋กœ ๋“ค์–ด๊ฐ€์ง„๋‹ค. ( ํ™”๋ฉด์ด ๊นจ์ ธ๋„ ์„ค์น˜ํ•˜๋ฉด ์›์ƒํƒœ๋กœ ๋จ.)

ํŒŒํ‹ฐ์…˜ ์„ค์ •์€ :
๋จผ์ € swap 24gb ๋ฅผ ๋บ€ ๋‚˜๋จธ์ง€๋ฅผ (๋…ผ๋ฆฌ/ex4/ ํŒŒ์ผ๊ฒฝ๋กœ: / ) ๋กœ ํ•˜์—ฌ ์ค€๋‹ค.
swap ํŒŒํ‹ฐ์…˜์€ ๋‚˜๋จธ์ง€ 2
4gb ๋กœ ์ฃผ๊ณ  (๋…ผ๋ฆฌ/swap ) ์œผ๋กœ ์ค€๋‹ค.

์ด ํ›„ ๋๋‚˜๋ฉด ๋ฐ˜๋“œ์‹œ
$sudo gedit /etc/default/grub

#..hidden ์ด ๊ณณ์— ์ฃผ์„์ฒ˜๋ฆฌ
splash ์˜†์— nomodeset์„ ์“ฐ๊ณ  ์ €์žฅํ•œ๋‹ค.

์•„๋ž˜๋Š” ํŒŒํ‹ฐ์…˜ ์„ค์ • ์„ค์น˜๊นŒ์ง€์˜ ์ฐธ๊ณ ํ•œ ๋™์˜์ƒ.
https://www.youtube.com/watch?v=uGdrQxA0E6g

[TIP] [Linux] ์„ค์น˜ else ์„ ํƒ์‹œ ํŒŒํ‹ฐ์…˜ ์„ค์ • (๋ฉ€ํ‹ฐ๋ถ€ํŒ…) (ํ˜„ : 18.04 LTS)

  1. ์œˆ๋„์šฐ๋ฅผ ๊น”๊ณ  ์–ด๋Š ์ •๋„ ๋ฆฌ๋ˆ…์Šค๋ฅผ ๊น”์•„์•ผํ•  ์šฉ๋Ÿ‰์ด ํ•„์š”ํ•˜๋‹ค.

  2. LEGACY๋ชจ๋“œ๊ฐ€ ์•„๋‹Œ UEFI ์˜ ๊ฒฝ์šฐ efi ํ˜•์‹์œผ๋กœ ๋˜์–ด์žˆ๋Š” windows manager์ด ๋ณด์ธ๋‹ค.

  3. ์ด์— ๋”ฐ๋ผ ๋‚จ์€ ์šฉ๋Ÿ‰์— efi ํŒŒํ‹ฐ์…˜์œผ๋กœ primary / ์‹œ์ž‘ ์‹œ์  / 512 mb ๋กœ ์ƒ์„ฑํ•ด์ค€๋‹ค.

  4. ๋‚˜๋จธ์ง€ ์šฉ๋Ÿ‰์€ ex4 ํŒŒ์ผ ์‹œ์Šคํ…œ์œผ๋กœ primary / ์‹œ์ž‘ ์ง€์  / ๋‚˜๋จธ์ง€์šฉ๋Ÿ‰ / ์œ„์น˜๋Š” ' / ' ๋กœ ์„ค์ •ํ•ด์ค€๋‹ค.

  5. (์˜ˆ์ „์˜ ์Šค์™‘ ์˜์—ญ ์ƒ์„ฑ์€ 18.04 ์—์„œ๋Š” ์•ˆํ•ด๋„ ๋œ๋‹ค.)

[Solved]caffe_undefined reference to 'TIFF...' ์˜ค๋ฅ˜

$ make all
.
.
.
NVCC src/caffe/solvers/nesterov_solver.cu
NVCC src/caffe/solvers/adadelta_solver.cu
NVCC src/caffe/solvers/adam_solver.cu
NVCC src/caffe/util/math_functions.cu
NVCC src/caffe/util/im2col.cu
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so.1.0.0
CXX tools/extract_features.cpp
CXX/LD -o .build_release/tools/extract_features.bin
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libopencv_imgcodecs.so: undefined reference to `TIFFReadRGBAStrip@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libgeotiff.so.2: undefined reference to `_TIFFmemcpy@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libopencv_imgcodecs.so: undefined reference to `TIFFReadDirectory@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFClientdata@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libgeotiff.so.2: undefined reference to `_TIFFrealloc@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libgeotiff.so.2: undefined reference to `_TIFFmemset@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFLastDirectory@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFReadRGBAStripExt@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libopencv_imgcodecs.so: undefined reference to `TIFFWriteEncodedStrip@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFSwabArrayOfShort@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libopencv_imgcodecs.so: undefined reference to `TIFFIsTiled@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFIsByteSwapped@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFFlushData@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFWriteCheck@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFSetWriteOffset@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFDefaultStripSize@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFScanlineSize64@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libpoppler.so.73: undefined reference to `TIFFFdOpen@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFIsBigEndian@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libopencv_imgcodecs.so: undefined reference to `TIFFWriteScanline@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `_TIFFfree@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFSwabShort@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFFreeDirectory@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libopencv_imgcodecs.so: undefined reference to `TIFFGetField@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libopencv_imgcodecs.so: undefined reference to `TIFFNumberOfStrips@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFWriteBufferSetup@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libopencv_imgcodecs.so: undefined reference to `TIFFScanlineSize@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFWriteEncodedTile@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFSwabLong@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFTileSize@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFWriteDirectory@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libopencv_imgcodecs.so: undefined reference to `TIFFReadEncodedTile@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libopencv_imgcodecs.so: undefined reference to `TIFFReadRGBATile@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libopencv_imgcodecs.so: undefined reference to `TIFFClose@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libgeotiff.so.2: undefined reference to `TIFFClientOpen@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFFlush@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFSetTagExtender@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libopencv_imgcodecs.so: undefined reference to `TIFFRGBAImageOK@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFWriteRawStrip@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFErrorExt@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFGetFieldDefaulted@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFSwabArrayOfLong@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFNumberOfDirectories@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFTileSize64@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFWriteRawTile@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFStripSize64@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libopencv_imgcodecs.so: undefined reference to `TIFFOpen@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFCreateDirectory@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFSetSubDirectory@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFStripSize@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFSwabArrayOfDouble@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFReadRGBATileExt@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libopencv_imgcodecs.so: undefined reference to `TIFFReadEncodedStrip@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFUnlinkDirectory@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFUnsetField@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libopencv_imgcodecs.so: undefined reference to `TIFFSetField@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFMergeFieldInfo@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFCurrentDirOffset@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFIsCODECConfigured@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFDataWidth@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libopencv_imgcodecs.so: undefined reference to `TIFFSetWarningHandler@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFGetConfiguredCODECs@LIBTIFF_4.0'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libopencv_imgcodecs.so: undefined reference to `TIFFSetErrorHandler@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFGetSizeProc@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFRewriteDirectory@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libgeotiff.so.2: undefined reference to `_TIFFmalloc@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFSetDirectory@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFReadScanline@LIBTIFF_4.0'
//usr/lib/libgdal.so.20: undefined reference to `TIFFNumberOfTiles@LIBTIFF_4.0'
collect2: error: ld returned 1 exit status
Makefile:635: recipe for target '.build_release/tools/extract_features.bin' failed
make: *** [.build_release/tools/extract_features.bin] Error 1

[SOLVED] BVLC/caffe#1559

$ conda uninstall libtiff

It works well.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.