r/cs231n•
fjdkf

What program are we supposed to run the ./get_datasets.sh command in?

This is for assignment 1. There are these instructions:

Download data: Once you have the starter code, you will need to download the CIFAR-10 dataset. Run >the following from the assignment1 directory:

cd cs231n/datasets
./get_datasets.sh

I downloaded python 2.7 anaconda and the assignment pack, but ./ isn't recognized as a command in either command prompt or anaconda prompt. If I try to run the file, I'm prompted to choose a program. So, I downloaded cygwin, but I then I get a while string of errors when I try to run it there.

I'm quite puzzled, because the assignment gives the impression it's plug-n-play. I can start up ipython fine, but of course it errors out as soon as it looks for the dataset.

I've got a feeling I'm missing something really basic. Ideas?

Posted May 9, 2016, 1:43 AM UTC · edited

15
mohitmayank•

It's a shell file, so I guess it's supposed to be run in a Linux terminal (bash, etc).

2
fjdkfOP•

Hmm ok, so I think that means I was on the right track using cygwin. Thanks, I'll troubleshoot down that path.

1
Bleyddyn•

Given how simple that shell script is, you could do it manually.

Download the file from the url in the second line, then ungzip and untar it (gzip is a compression format and tar is a way of bundling multiple files and folders into one archive). I don't know of tar or gzip programs for Windows, but I would imagine there are several.

2
fjdkfOP•

I followed this advice using 7zip, and everything worked perfectly.

I just went back and got cygwin to do it, but until I dive into linux, I think I'll keep manually extracting things.

1
RobRomijnders•

Yes, when I started the course I wouldn;t want to hear anything about Linux as well. Halfway through the course I switched to Ubuntu. Everything has just been easier from that moment on.

Initially, you'll spend more effort in figuring out Ubuntu. In the long run, it will surely save you time.

2