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