Download 斯坦福CS231n:如何下载数据集(在windows中使用.sh文件)?

Download 斯坦福CS231n:如何下载数据集(在windows中使用.sh文件)?,download,sh,Download,Sh,我正在自学斯坦福cs231n课程中的常规神经网络。我正在努力完成这项工作。然而,我对如何下载数据感到完全困惑。我跟着老师看 下载数据:一旦获得启动代码,您需要 下载CIFAR-10数据集。从assignment1 目录: 我不明白下面的“运行”是什么意思。跑什么?以前,我使用R,因此我理解“运行R”的含义。但这里并没有说运行“what”或在“where”中运行代码 因此,我尝试在命令提示符、Anaconda提示符、PowerShell甚至Git Bash中运行代码。“”的命令提示符游戏错误无法识

我正在自学斯坦福cs231n课程中的常规神经网络。我正在努力完成这项工作。然而,我对如何下载数据感到完全困惑。我跟着老师看

下载数据:一旦获得启动代码,您需要 下载CIFAR-10数据集。从
assignment1
目录:

我不明白下面的“运行”是什么意思。跑什么?以前,我使用R,因此我理解“运行R”的含义。但这里并没有说运行“what”或在“where”中运行代码

因此,我尝试在命令提示符、Anaconda提示符、PowerShell甚至Git Bash中运行代码。
“”的命令提示符游戏错误无法识别为内部或外部命令。PowerShell不会给出错误,但也不会给出任何结果。它只是打开一个文本文档的代码

# Get CIFAR10
wget http://www.cs.toronto.edu/~kriz/cifar-10-python.tar.gz
tar -xzvf cifar-10-python.tar.gz
rm cifar-10-python.tar.gz 
Git Bash给了我一个错误

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

如何下载这些数据?请帮忙!谢谢。

使用cmd导航到存在get_datasets.sh文件的文件夹。 在命令提示符下使用命令\get_datasets.sh

确保您没有丢失wget。如果缺少wget,请在本地计算机上安装wget,然后运行shell脚本

正确安装wget后,请使用开头提到的说明。

下载 &将wget.exe复制到git

C:\ProgramFiles\Git\mingw64

然后重新启动git bash或导航到存在get_datasets.sh文件的文件夹。 在gitbash中运行以下命令

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