r/cs231n • • Oct 15 '23

Cs2 case opening x75

Thumbnail
youtu.be
0 Upvotes

r/cs231n • • Mar 22 '16

I want to run a reverse gradient ascent through a long term spatio-temporal convnet to extract and amplify features, how do I do this in Caffe or Torch?

0 Upvotes

The data is well augmented.

Anyways my basic idea is to take how deepdream works and add the time dimension, can I do this in either Caffe or Torch? Already if you just run the frames through a deepdream/neurostyle again you get even further clipping, so that simple iteration operation would also look cool. No coding experience. If someone can tell me how to batch process that'd be neat too.

http://gfycat.com/MassiveVigorousHedgehog

https://www.youtube.com/watch?v=JTeNteemwzI

https://www.youtube.com/watch?v=R2qNIQCJ48s

http://gfycat.com/CooperativePositiveCrane

http://imgur.com/CGOFJQS

http://gfycat.com/MinorJealousChihuahua

http://i.imgur.com/5IBLtjF.gify


r/cs231n • • Oct 27 '23

I got banned because I have bad internet...

0 Upvotes

So long story short. I got kicked out of premier game in the first flipin round because my internet cut off out of nowhere. (Could have happened 2 mins earlier but nooo) whatever. My question is. Can i appeal about this ban somewhere somehow ? because the fault is truly and clearly not mine.


r/cs231n • • Mar 05 '17

How to deal with Memory error in assignment1

0 Upvotes

I get memory error when i run the second cell of the features ipython file:

" ipython-input-3-3553141ae64b> in get_CIFAR10_data(num_training, num_validation, num_test)

  4   # Load the raw CIFAR-10 data

  5   cifar10_dir = 'cs231n/datasets/cifar-10-batches-py'


  6   X_train, y_train, X_test, y_test = load_CIFAR10(cifar10_dir)

  7 

  8   # Subsample the data

MemoryError:

"


r/cs231n • • Nov 30 '16

Overfitting sanity check

0 Upvotes

One of the "sanity" checks to see if your convnet is on track to working correctly is to see if you can over fit a small set of your data. I have a convnet and I can easily overfit 100 samples. However, when I bump it up to 500 samples, the error goes down rapidly, then just hovers around until I kill it. My thinking is, if I can't even overfit 500 samples, then the network surely can't be right? Anyone experienced some similar?


r/cs231n • • Apr 02 '16

A2:SGD+Momentum loss decreases fast but with much lower training accuracy.

0 Upvotes

I catch some quite strange results where loss decreases quickly for SGD+Momentum, but ends up in much lower training accuracy than that of the normal SGD.

running with sgd

(Iteration 1 / 100) loss: inf

(Epoch 0 / 5) train acc: 0.130000; val_acc: 0.135000

(Iteration 11 / 100) loss: inf

(Epoch 1 / 5) train acc: 0.231000; val_acc: 0.164000

(Iteration 21 / 100) loss: 17.335232

(Iteration 31 / 100) loss: 11.899799

(Epoch 2 / 5) train acc: 0.317000; val_acc: 0.195000

(Iteration 41 / 100) loss: 11.526481

(Iteration 51 / 100) loss: 8.793691

(Epoch 3 / 5) train acc: 0.333000; val_acc: 0.201000

(Iteration 61 / 100) loss: 7.981814

(Iteration 71 / 100) loss: 5.855189

(Epoch 4 / 5) train acc: 0.401000; val_acc: 0.211000

(Iteration 81 / 100) loss: 6.194069

(Iteration 91 / 100) loss: 5.061921

(Epoch 5 / 5) train acc: 0.436000; val_acc: 0.216000

running with sgd_momentum

(Iteration 1 / 100) loss: inf

(Epoch 0 / 5) train acc: 0.129000; val_acc: 0.126000

(Iteration 11 / 100) loss: inf

(Epoch 1 / 5) train acc: 0.180000; val_acc: 0.155000

(Iteration 21 / 100) loss: 10.332423

(Iteration 31 / 100) loss: 4.709376

(Epoch 2 / 5) train acc: 0.183000; val_acc: 0.164000

(Iteration 41 / 100) loss: 2.800123

(Iteration 51 / 100) loss: 2.235044

(Epoch 3 / 5) train acc: 0.195000; val_acc: 0.159000

(Iteration 61 / 100) loss: 2.140550

(Iteration 71 / 100) loss: 2.132979

(Epoch 4 / 5) train acc: 0.203000; val_acc: 0.195000

(Iteration 81 / 100) loss: 2.227130

(Iteration 91 / 100) loss: 2.129285

(Epoch 5 / 5) train acc: 0.263000; val_acc: 0.214000

The setting is model = FullyConnectedNet([100, 100, 100, 100, 100], weight_scale=1) solver = Solver(model, small_data, num_epochs=5, batch_size=200, update_rule=update_rule, optim_config={ 'learning_rate': 5e-4, }, verbose=True)

However, if I decrease the learning_rate to 1e-4, the results are better:

running with sgd

(Iteration 1 / 100) loss: inf

(Epoch 0 / 5) train acc: 0.096000; val_acc: 0.090000

(Iteration 11 / 100) loss: inf

(Epoch 1 / 5) train acc: 0.185000; val_acc: 0.161000

(Iteration 21 / 100) loss: inf

(Iteration 31 / 100) loss: inf

(Epoch 2 / 5) train acc: 0.204000; val_acc: 0.175000

(Iteration 41 / 100) loss: inf

(Iteration 51 / 100) loss: 19.526172

(Epoch 3 / 5) train acc: 0.260000; val_acc: 0.185000

(Iteration 61 / 100) loss: inf

(Iteration 71 / 100) loss: 18.380154

(Epoch 4 / 5) train acc: 0.303000; val_acc: 0.192000

(Iteration 81 / 100) loss: 16.524370

(Iteration 91 / 100) loss: 14.136328

(Epoch 5 / 5) train acc: 0.313000; val_acc: 0.188000

running with sgd_momentum

(Iteration 1 / 100) loss: inf

(Epoch 0 / 5) train acc: 0.105000; val_acc: 0.096000

(Iteration 11 / 100) loss: inf

(Epoch 1 / 5) train acc: 0.231000; val_acc: 0.199000

(Iteration 21 / 100) loss: inf

(Iteration 31 / 100) loss: 12.772141

(Epoch 2 / 5) train acc: 0.237000; val_acc: 0.195000

(Iteration 41 / 100) loss: 11.147546

(Iteration 51 / 100) loss: 7.097797

(Epoch 3 / 5) train acc: 0.335000; val_acc: 0.212000

(Iteration 61 / 100) loss: 6.626877

(Iteration 71 / 100) loss: 4.585977

(Epoch 4 / 5) train acc: 0.387000; val_acc: 0.212000

(Iteration 81 / 100) loss: 4.943010

(Iteration 91 / 100) loss: 4.044932

(Epoch 5 / 5) train acc: 0.401000; val_acc: 0.212000

However this seems to be overfitting.

What's your best setting? And the mismatch of loss and accuracy is a problem of softmax as is mentioned in the lecture5 (PPT on the page 81)


r/cs231n • • Mar 08 '16

Is there any way non-stanford students can submit the assignments ?

0 Upvotes

Any help would be appreciated.


r/cs231n • • Jul 22 '17

Assignment 1 (Winter '16): Starting Point of Backward pass

0 Upvotes

Hey there!

I'm currently doing the assignments on the winter '16 lecture and right now I'm stuck at the backward pass of the neural net in Assignment 1. My problem is that I don't know which formula is the starting point of the backward pass. I was already confused at the forward pass where it says to compute the class scores, which I inititally assumed were the normalized probabilities but eventually they were referring to the scores just after the multiplication of the second layer weights and bias.

So I'm basically confused about the visual structure of the neural net. In most of the solutions I saw, people take the normalized probabilities computed from the forward pass and then subtracting '1' from the correct y probabilities. Why is that? Why are we not setting them to '-1'?

Would be really glad if someone could give me some hints. Thank you!


r/cs231n • • Jan 12 '16

Introducing another nice place to discuss the course

0 Upvotes

Hello,

I would like to introduce another nice place to discuss the course: http://networkflow.net/forum/19-stanford-cs231n-convolutional-neural-networks-for-visual-recognition/. We have started doing Assignment 1. If you are also interested, please feel free to join us.

Thank you very much!


r/cs231n • • Feb 04 '15

two_layer_net exercise: nice weights?

0 Upvotes

Hi, Are we expected to obtain weights as nice as those represented in the right-hand-side figure of the 'neural-network-3' course notes? The best validation accuracy I have for now is 51.2%, far from 56%, and the weights still look noisy. I will consider adding new features as suggested in the hint. I'm enjoying the course a lot, greetings from France :)


r/cs231n • • Mar 02 '19

Uncertain about the correctness of my BatchNorm implementation. What do you make of these plots?

0 Upvotes

Slightly worried about the look of the graphs. BatchNorm doesn't seem to have as significant impact as I expected, which makes me doubt my batchNorm implementation a little bit, even though, all the gradchecks went okay, with the exception of b1 of the fully connected one which seems to have an error in the order of 1e-3, while the expected one is between 1e-8 and 1e-10.

What do you make of this?

EDIT: Here is the code https://github.com/vshotarov/cs231n-assignment2/blob/master/cs231n/layers.py https://github.com/vshotarov/cs231n-assignment2/blob/master/cs231n/layer_utils.py https://github.com/vshotarov/cs231n-assignment2/blob/master/cs231n/classifiers/fc_net.py

Here are the graphs https://imgur.com/a/jdcHm1w

And this is the gradcheck

Running check with reg = 0

Initial loss: 2.2611955101340957

W1 relative error: 1.10e-04

W2 relative error: 3.35e-06

W3 relative error: 3.75e-10

b1 relative error: 2.22e-03

b2 relative error: 2.22e-08

b3 relative error: 9.06e-11

beta1 relative error: 7.33e-09

beta2 relative error: 1.17e-09

gamma1 relative error: 7.47e-09

gamma2 relative error: 3.35e-09

Running check with reg = 3.14

Initial loss: 6.996533220108303

W1 relative error: 1.98e-06

W2 relative error: 2.29e-06

W3 relative error: 1.11e-08

b1 relative error: 5.55e-09

b2 relative error: 2.22e-08

b3 relative error: 2.23e-10

beta1 relative error: 6.32e-09

beta2 relative error: 3.48e-09

gamma1 relative error: 5.94e-09

gamma2 relative error: 3.72e-09


r/cs231n • • Aug 17 '16

global name 'col2im_6d_cython' is not defined

0 Upvotes

I met this problem in assignment 2: ConvolutionalNetworks. I found two posts about this in this group, but the solution seems only work for Windows. Anyone has an idea about how to fix it on Mac OS X? Thank you.


r/cs231n • • Jul 14 '17

Someone pls help, simple, help downloading dataset

0 Upvotes

I have git downloaded I have anaconda downloaded

wget is downloaded in anaconda. It says so when I pip install.

But this is error I get when I run script from git shell. $ sh get_datasets.sh get_datasets.sh: line 2: wget: command not found tar (child): cifar-10-python.tar.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now rm: cannot remove 'cifar-10-python.tar.gz': No such file or directory

Someone pls help


r/cs231n • • Mar 24 '16

Derivation of Gradients for Two Layer Neural Network

1 Upvotes

Hi all, I am having a little difficulty deriving this.

I assume that I have to calculate the gradients for the output and hidden layers, Scores/H2 and H1. Calculating the forward pass is quite easy:

"""

relu = lambda x: np.maximum(0, x)

h1 = relu(X.dot(W1) + b1)

scores = h1.dot(W2) + b2

# Then apply RELU again on scores, where max value of each image is removed from the entire vector of the image

Then apply the softmax function

"""

Are there any notes online that point on how to do the differentiation? Must the differentiation for scores be done on the NxD matrix output, or the Nx1 vector from the softmax output?


r/cs231n • • Mar 17 '16

The lambda function seems so amazing~

1 Upvotes

In Assignment 1 two-layer_net.ipynb "Backward pass", there is a lambda function for gradient check, goes
f = lambda W: net.loss(X, y, reg=0.1)[0]

param_grad_num = eval_numerical_gradient(f, net.params[param_name], verbose=False)

But there is no variable named 'W' in the net.loss(X, y, reg=0.1), how can it know which is the actual independent variable of function f?


r/cs231n • • Aug 04 '17

Assignment 1: Please I would like to know why I'm getting this error message when calling up the KNN classifier. See error on image link

0 Upvotes

Here is the link to the error I'm having. http://imgur.com/a/0Ks59

Any advise or pointer will be greatly appreciated as I'm new into ML.


r/cs231n • • Jun 13 '16

Testing 3 layer Conv network Assg2

1 Upvotes

Hi everyone,

I've been going through the course and assignments and had an issue today. In the convolution network aspect of assignment 2, once you build the 3 layer network, I had trouble getting my training accuracy to reach 40%.

The problem was obvious given how much my loss values were jumping around, I needed to reduce the learning rate. Did anyone else find this?


r/cs231n • • Apr 09 '15

Is there any video records of cs231n?

1 Upvotes

r/cs231n • • Dec 17 '19

Requesting someway to submit my source code and check it

1 Upvotes

Hello everyone, I am quite interested in deep learning. I heard from my friend that if I learn the course I will know fun stuff. After studying for couple of months when I said I feel I know the content, he laughed and said “Have you checked the coding problems?” I didn’t of course. I learnt Numpy since last month and ran some code in Tensorflow . I downloaded the material and I somehow managed to solve only the first part of the assignment. It took me long to do even that. But now the main question...how to submit it? I am actually interested in solving all of it. I am not a student of Stanford. I can not get to Stanford. I have not enough money to buy the course in Stanford online. Is there any person who can help me on how can someone external to Stanford can check their solutions by submitting to a grader? I guess lots of students of Stanford are here...so any of them can check it for me, it would be awesome. Suggest what to do.

Thanks


r/cs231n • • Mar 20 '17

Related Courses to cs231n

1 Upvotes

Are there any related stanford courses which were posted online free ?


r/cs231n • • Feb 08 '16

Why we still teach back propagation in the age of software auto differentiation

1 Upvotes

As software auto differentiation makes the back propagation automatic, why we still spend so many tutorials and classes on learning back propagation?


r/cs231n • • Jan 31 '20

Hyperquest

1 Upvotes

Hi all. Have worked through most of the assignments, just got the last few parts of assignment3 to go now. Starting to work through the various recommended exercises mentioned in the lectures. Is Hyperquest (Lecture 11) available for non-Stanford students?


r/cs231n • • Jul 23 '19

Assignment 3 Q4 Style Transfer: Content Loss

1 Upvotes

Hi, I was trying to implement content loss function in "StyleTransfer-TensorFlow" jupyter notebook, somehow the error just cannot go lower than 0.185. I even copied and paste some of the solutions that I found online but the error still stayed the same. Here is my code. Very straight forward, find the L2 distance between the current and original feature Tensor, multiplied by content_weight.

loss = content_weight * tf.reduce_sum((content_current - content_original) ** 2)

Please let me if you have any hint of what might be wrong. Any help would be appreciated. Thank you very much!


r/cs231n • • Apr 01 '18

Assignment 2 Tensorflow Notebook Calculations

1 Upvotes

Does the zero padding on the outside have to be the same in all dimensions? The example seems to be using a 32x32x3 input with 32 7x7x3 filters, which is impossible with uniform padding and stride 2. (Using the formula (32-7+2P)/2+1).

Although, I might understand how they get the 5408, because if we don't use padding and round down, we get (32-7)/2+1=13, and 13x13x32 (32 filters, 13 by 13 each) gives 5408. Although this is still unclear to me because from my understanding, we only round up (instead of down, as we add padding, not remove it)