MorvanZhou / PyTorch-Tutorial

Build your neural network easy and fast, 莫烦Python中文教学
https://mofanpy.com/tutorials/machine-learning/torch/
MIT License
8.13k stars 3.12k forks source link

401_CNN.py #84

Closed zhfff4869 closed 4 years ago

zhfff4869 commented 4 years ago

I run it on WIN10.I have gotten the mnist.But when I run it,it says "RuntimeError: Dataset not found. You can use download=True to download it"

Chester171 commented 1 year ago

@

/# first, make sure that your conda is setup properly with the right environment

right path. From a clean conda env, this is what you need to do

conda create --name maskrcnn_benchmark source activate maskrcnn_benchmark

this installs the right pip and dependencies for the fresh python

conda install ipython

maskrcnn_benchmark and coco api dependencies

pip install ninja yacs cython matplotlib

follow PyTorch installation in https://pytorch.org/get-started/locally/

we give the instructions for CUDA 9.0

conda install pytorch-nightly -c pytorch

install torchvision

cd ~/github git clone https://github.com/pytorch/vision.git cd vision python setup.py install

install pycocotools

cd ~/github git clone https://github.com/cocodataset/cocoapi.git cd cocoapi/PythonAPI python setup.py build_ext install

install PyTorch Detection

cd ~/github git clone https://github.com/facebookresearch/maskrcnn-benchmark.git cd maskrcnn-benchmark

the following will install the lib with

symbolic links, so that you can modify

the files if you want and won't need to

re-build it

python setup.py build develop

or if you are on macOS

MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py build develop

tongbaochen commented 1 year ago

您好,      您的邮件已收到。陈通宝广东工业大学

li-phone commented 1 year ago

你好,你的邮件已收到,稍后将会查看,尽快给你回复。