summaryrefslogtreecommitdiff
path: root/notes/frameworks/vast_ai.md
blob: 9b99ce23a0cef66628d247795ea97f35895172fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
mkdir -p datasets/lfw/lfw_jpgs
tar 
apt install imagemagick nano screen git -y
pip install Pillow
find lfw_raw -name "*.jpg" -print0 | xargs -0 mv -t lfw_jpgs
mogrify -resize 256x256! -colorspace sRGB -type truecolor lfw_jpgs/*.jpg

89iio2YaTkla


  1  touch ~/.no_auto_tmu
    2  exit
    3  apt install screen nano git -Y
    4  apt install screen nano git -y
    5  mkdir -p work/3rdparty
    6  cd work/3rdparty/
    7  git clone https://github.com/tkarras/progressive_growing_of_gans
    8  cd progressive_growing_of_gans/
    9  mkdir -p datasets/lfw
   10  cd datasets/lfw/
   11  wget http://vis-www.cs.umass.edu/lfw/lfw.tgz
   12  ls
   13  mkdir lfw_jpgs
   14  tar -zxf lfw.tgz --directory lfw_jpgs/
   15  pip install Pillow
   16  mv lfw_jpgs/ lfw_raw
   17  mkdir -p datasets/lfw/lfw_jpgs
   18  rm -r datasets/
   19  mkdir lfw_jpgs
   20  find lfw_raw -name "*.jpg" -print0 | xargs -0 mv -t lfw_jpgs
   21  ls lfw_jpgs |wc -l
   22  mogrify -resize 256x256! -colorspace sRGB -type truecolor lfw_jpgs/*.jpg
   23  apt install imagemagick -y
   24  nvcc -V
   25  history |grep tou
   26  exit
   27  cd /work/3rdparty/progressive_growing_of_gans/datasets/
   28  cd ~/work/3rdparty/progressive_growing_of_gans/datasets/
   29  ls
   30  cd lfw
   31  mogrify -resize 256x256! -colorspace sRGB -type truecolor lfw_jpgs/*.jpg
   32  ls
   33  mkdir lfw_tfr
   34  cd ../../
   35  python dataset_tool.py create_from_images datasets/lfw/lfw_tfr/ datasets/lfw/lfw_jpgs/
   36  python -V
   37  which conda
   38  wget https://repo.anaconda.com/archive/Anaconda3-2018.12-MacOSX-x86_64.sh
   39  bash Anaconda3-2018.12-MacOSX-x86_64.sh 
   40  cd work/3rdparty/progressive_growing_of_gans/
   41  ls
   42  rm Anaconda3-2018.12-MacOSX-x86_64.sh 
   43  wget https://repo.anaconda.com/archive/Anaconda3-2018.12-Linux-x86_64.sh
   44  bash Anaconda3-2018.12-Linux-x86_64.sh 
   45  conda create pgan
   46  source ~/.bashrc
   47  which conda
   48  conda create pgan
   49  conda create -n pgan python=3.6
   50  conda activate pgan
   51  pip install -r requirements-pip.txt 
   52  cd work/3rdparty/progressive_growing_of_gans/
   53  ls
   54  ls datasets
   55  ls datasets/lfw
   56  conda activate pgan
   57  history
   58  python dataset_tool.py create_from_images datasets/lfw/lfw_tfr/ datasets/lfw/lfw_jpgs/
   59  nano config.py 
   60  screen -R train_lfw
   61  watch -n1 nvidia-smi
   62  nvidia-smi -i 0 -pl 250
   63  sudo nvidia-smi -i 0 -pl 250
   64  watch -n1 nvidia-smi
   65  history