Skip to content

Instantly share code, notes, and snippets.

@eldon
Last active May 6, 2017 23:55
Show Gist options
  • Select an option

  • Save eldon/482fb6c4aadcd91d15605b9b82e383fc to your computer and use it in GitHub Desktop.

Select an option

Save eldon/482fb6c4aadcd91d15605b9b82e383fc to your computer and use it in GitHub Desktop.
Set up azure data science vm for cyclegan and pix2pix
sudo chown $USER /data
sudo chgrp $USER /data
# create new conda environment using python3
conda create --yes --name cs280 python=3.5
source activate cs280
# -------
#export CMAKE_PREFIX_PATH=[anaconda root directory]
export CMAKE_PREFIX_PATH=$(conda env list | grep cs280 | sed 's|.* ||')
# Install basic dependencies
conda install --yes numpy pyyaml mkl setuptools cmake gcc cffi
# Add LAPACK support for the GPU
conda install --yes --channel soumith magma-cuda80 # or magma-cuda75 if CUDA 7.5
# install pytorch
conda install --yes pytorch torchvision cuda80 --channel soumith
# pytorch deps
pip install visdom dominate
# clone the repo
cd /data
git clone https://github.com/eldon/pytorch-CycleGAN-and-pix2pix.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment