Skip to content

Commit 16e38fb

Browse files
committed
Added GPU Instructions.
1 parent cf1f1a7 commit 16e38fb

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

assignments/2017/assignment3.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ source /home/cs231n/myVE35/bin/activate
3737

3838
We recommend using Google Cloud with GPU support for the question 5 of this assignment (the GAN notebook), since your training will go much, much faster. However, it will not help at all for questions 1 and 2 (RNN and LSTM), and questions 3 and 4 are still fast on CPU (these notebook should run in a few minutes).
3939

40+
#### What do I do if my Google Cloud GPUs disappeared?
41+
You might note that sometimes, your GPUs are no longer accessible on your Google Cloud instance after you restart it. If this happens, please run the following commands in your assignment3 directory:
42+
43+
```bash
44+
sudo apt-get remove unattended-upgrades
45+
chmod u+x where_are_my_drivers.sh
46+
./where_are_my_drivers.sh
47+
```
48+
49+
If this isn't working, you can find more detailed instructions and manual ways of fixing this [here](https://cloud.google.com/compute/docs/gpus/add-gpus#install-driver-script). You should follow the "Ubuntu 16.04" instructions.
50+
4051
### Working locally
4152
Here's how you install the necessary dependencies:
4253

@@ -66,7 +77,8 @@ deactivate # Exit the virtual environment
6677
Note that every time you want to work on the assignment, you should run `source .env/bin/activate` (from within your `assignment3` folder) to re-activate the virtual environment, and `deactivate` again whenever you are done.
6778

6879
## Working on the assignment:
69-
Get the code as a zip file [here](http://cs231n.stanford.edu/assignments/2017/spring1617_assignment3_v1.zip).
80+
81+
### Get the code as a zip file [here](http://cs231n.stanford.edu/assignments/2017/spring1617_assignment3_v1.zip).
7082

7183
### Download data:
7284
Once you have the starter code (regardless of which method you choose above), you will need to download the COCO captioning data, pretrained SqueezeNet model (TensorFlow-only), and a few ImageNet validation images.
@@ -97,23 +109,23 @@ working run the `collectSubmission.sh` script; this will produce a file called
97109

98110
#### You can do Questions 3, 4, and 5 in TensorFlow or PyTorch. There are two versions of each notebook, with suffixes -TensorFlow or -PyTorch. No extra credit will be awarded if you do a question in both TensorFlow and PyTorch.
99111

100-
### Q1: Image Captioning with Vanilla RNNs (20 points)
112+
### Q1: Image Captioning with Vanilla RNNs (25 points)
101113
The Jupyter notebook `RNN_Captioning.ipynb` will walk you through the
102114
implementation of an image captioning system on MS-COCO using vanilla recurrent
103115
networks.
104116

105-
### Q2: Image Captioning with LSTMs (20 points)
117+
### Q2: Image Captioning with LSTMs (30 points)
106118
The Jupyter notebook `LSTM_Captioning.ipynb` will walk you through the
107119
implementation of Long-Short Term Memory (LSTM) RNNs, and apply them to image
108120
captioning on MS-COCO.
109121

110-
### Q3: Network Visualization: Saliency maps, Class Visualization, and Fooling Images (20 points)
122+
### Q3: Network Visualization: Saliency maps, Class Visualization, and Fooling Images (15 points)
111123
The Jupyter notebooks `NetworkVisualization-TensorFlow.ipynb` /`NetworkVisualization-PyTorch.ipynb` will introduce the pretrained SqueezeNet model, compute gradients
112124
with respect to images, and use them to produce saliency maps and fooling
113125
images. Please complete only one of the notebooks (TensorFlow or PyTorch). No extra credit will be awardeded if you complete both notebooks.
114126

115-
### Q4: Style Transfer (20 points)
127+
### Q4: Style Transfer (15 points)
116128
In the Jupyter notebooks `StyleTransfer-TensorFlow.ipynb`/`StyleTransfer-PyTorch.ipynb` you will learn how to create images with the content of one image but the style of another. Please complete only one of the notebooks (TensorFlow or PyTorch). No extra credit will be awardeded if you complete both notebooks.
117129

118-
### Q5: Generative Adversarial Networks (20 points)
130+
### Q5: Generative Adversarial Networks (15 points)
119131
In the Jupyter notebooks `GANs-TensorFlow.ipynb`/`GANs-PyTorch.ipynb` you will learn how to generate images that match a training dataset, and use these models to improve classifier performance when training on a large amount of unlabeled data and a small amount of labeled data. Please complete only one of the notebooks (TensorFlow or PyTorch). No extra credit will be awarded if you complete both notebooks.

0 commit comments

Comments
 (0)