Skip to content

Instantly share code, notes, and snippets.

View dongzhuoyao's full-sized avatar
💭
I may be slow to respond.

Tao Hu dongzhuoyao

💭
I may be slow to respond.
View GitHub Profile
@dongzhuoyao
dongzhuoyao / install_opencv2_ubuntu.sh
Last active July 21, 2018 13:40 — forked from arthurbeggs/install_opencv2_ubuntu.sh
Install OpenCV2 in Ubuntu
#!/bin/bash
################################################################################
### OpenCV2 Installation Script ###
################################################################################
# Source code at https://github.com/arthurbeggs/scripts #
################################################################################
# #
# Feel free to copy and modify this file. Giving me credit for it is your #
# choice, but please keep references to other people's work, which I don't #
```
sudo fdisk -l
sudo mount -t ext4 /dev/sda1 /data1 &&
sudo mount -t ext4 /dev/sdb1 /data2 &&
sudo mount -t ext4 /dev/sdc1 /data3 &&
sudo mount -t ext4 /dev/sde1 /data4 &&
sudo mount -t ext4 /dev/sdf1 /data5 &&
sudo mount -t ext4 /dev/sdg1 /data6
```
@dongzhuoyao
dongzhuoyao / Install NVIDIA Driver and CUDA.md
Last active June 7, 2018 12:35 — forked from zhanwenchen/Install NVIDIA Driver and CUDA.md
Install NVIDIA CUDA 9.0 on Ubuntu 16.04.4 LTS
@dongzhuoyao
dongzhuoyao / py3.5_ubuntu_14.04.txt
Created May 29, 2018 16:57 — forked from larainema/py3.5_ubuntu_14.04.txt
how to install python3.5 on ubuntu 14.04
Felix Krull runs a PPA offering basically any version of Python (seriously, there is 2.3.7 build for vivid...) for many Ubuntu releases at
https://launchpad.net/~fkrull/+archive/ubuntu/deadsnakes
Do the usual:
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python3.5
It will not overwrite your existing python3.4 which is still symlinked as python3. If you want python3.5 to be the default python3, change the symlink
name: "VGG_ILSVRC_16_layers"
layer {
name: 'input-data'
type: 'Python'
top: 'data'
top: 'im_info'
top: 'gt_boxes'
top: 'need_backprop'
top: 'dc_label'
python_param {
name: "VGG_coco_SSD_300x300_train"
layer {
name: "data"
type: "AnnotatedData"
top: "data"
top: "label"
include {
phase: TRAIN
}
transform_param {
layer {
name: "first_img"
type: "Input"
top: "first_img"
top: "second_img"
top: "first_label"
top: "second_label"
input_param {
shape {
dim: 1
使用规范
服务器配置: cuda 8.0, cudnn6.0.21
1.需要sudo权限的同学,简单操作我帮你做,复杂操作我暂时给你sudo权限,过后收回。
(系统崩了就得重装,重装系统虽简单,但是琐碎且耗时,因此为了管理方便,sudo权限采用集中管理)
2.大型数据存放在/data1,/data2,/data3,/data4,/data5,/data6这些硬盘上面。
3.不要私自建立账户,需要建立账户提前跟我联系。
virturalenv
sudo apt-get install python-dev
保存当前环境安装包
pip freeze > requirements.txt
安装大礼包
pip install -r requirements.txt