summaryrefslogtreecommitdiff
path: root/notes/frameworks
diff options
context:
space:
mode:
authoradamhrv <adam@ahprojects.com>2018-11-04 21:44:20 +0100
committeradamhrv <adam@ahprojects.com>2018-11-04 21:44:20 +0100
commit156790b383101756e2324dcde63415f00ba94a86 (patch)
tree62761815f480d244fae3602c9189baf7aec02497 /notes/frameworks
parent83507e26c00f79b7bac3d3b606da50cc4cd0db6b (diff)
.
Diffstat (limited to 'notes/frameworks')
-rw-r--r--notes/frameworks/darknet.md13
-rw-r--r--notes/frameworks/docker.md28
-rw-r--r--notes/frameworks/nvidia.md22
-rw-r--r--notes/frameworks/progress_gan.md15
4 files changed, 78 insertions, 0 deletions
diff --git a/notes/frameworks/darknet.md b/notes/frameworks/darknet.md
new file mode 100644
index 00000000..c2d73294
--- /dev/null
+++ b/notes/frameworks/darknet.md
@@ -0,0 +1,13 @@
+# Darknet
+
+Installation
+
+- `git clone https://github.com/AlexeyAB/darknet darknet_ab`
+- if `make` errors
+ - `export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:$LD_LIBRARY_PATH`
+ - `export PATH=/usr/local/cuda-9.0/bin:$PATH`
+ - `make clean && make`
+
+# YOLO Python GPU interface
+
+- `git clone https://github.com/madhawav/YOLO3-4-Py` and follow setup for GPU \ No newline at end of file
diff --git a/notes/frameworks/docker.md b/notes/frameworks/docker.md
new file mode 100644
index 00000000..af703c0e
--- /dev/null
+++ b/notes/frameworks/docker.md
@@ -0,0 +1,28 @@
+# Docker
+
+#### Useful Docker commands
+
+- list names of running containers: `docker ps`
+- log int to docker: `docker exec -ti -u root container_name bash`
+- reload daemon: `sudo systemctl daemon-reload`
+- restart docker `sudo systemctl restart docker`
+
+#### Change Image Storage Location
+
+- Using many docker images can use several hundred GBs of store. It's often useful to move this off your statup disk
+- Edit `sudo nano /etc/docker/daemon.json`
+- Add
+```
+{
+ "data-root": "/path/to/new/docker"
+}
+```
+- stop docker `sudo systemctl stop docker`
+- check docker has stopped `ps aux | grep -i docker | grep -v grep`
+- copy data to new location `sudo rsync -axPS /var/lib/docker/ /path/to/new/docker`
+- `sudo rsync -axPS /var/lib/docker/ /media/ubuntu/disk_name/data_store/docker_images` to copy to your new disk
+
+
+#### Permissions
+
+- permissions still not solved, but here are useful tips: <http://www.carlboettiger.info/2014/10/21/docker-and-user-permissions-crazyness.html> \ No newline at end of file
diff --git a/notes/frameworks/nvidia.md b/notes/frameworks/nvidia.md
new file mode 100644
index 00000000..b54aed8a
--- /dev/null
+++ b/notes/frameworks/nvidia.md
@@ -0,0 +1,22 @@
+# NVIDIA
+
+During installations may need to udpate your paths when using multiple versions of CUDA
+
+```
+export CUDA_HOME=/usr/local/cuda
+export LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH
+export PATH=$CUDA_HOME/bin:$PATH
+```
+
+### Install CUDA versions
+
+Example installing older CUDA 9.0:
+
+- go to <https://developer.nvidia.com/cuda-90-download-archive>
+- download .deb for your Ubuntu version
+- `sudo dpkg -i cuda-repo-ubuntu1604_9.0.176-1_amd64.deb`
+- `sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub`
+- `sudo apt-get update`
+- `sudo apt-get install cuda-9-0`
+- `sudo rm /usr/local/cuda` to remove previous symlink
+- `sudo ln -s /usr/local/cuda-9.0 /usr/local/cuda` \ No newline at end of file
diff --git a/notes/frameworks/progress_gan.md b/notes/frameworks/progress_gan.md
new file mode 100644
index 00000000..580052a3
--- /dev/null
+++ b/notes/frameworks/progress_gan.md
@@ -0,0 +1,15 @@
+# Progressive GAN
+
+Progressive Growing of GANs for Improved Quality, Stability, and Variation<br><i>– Official TensorFlow implementation of the ICLR 2018 paper</i>
+
+### Start new training
+
+- edit `config.py` dataset path
+- `desc += '-my_name'; dataset = EasyDict(tfrecord_dir='tf_dir_name'); train.mirror_augment = True;`
+`python train.py`
+-
+
+### Resume Training
+
+- `desc += '-my_name'; dataset = EasyDict(tfrecord_dir='512x512'); train.mirror_augment = True; train.resume_kimg = 5587.8; train.resume_run_id = 11;`
+- to get `kimg`, `cat 011_yourproject/log.txt` and find latest kimg number