网页地址:https://github.com/datawhalechina/team-learning/blob/master/03%20%E8%AE%A1%E7%AE%97%E6%9C%BA%E8%A7%86%E8%A7%89/%E8%AE%A1%E7%AE%97%E6%9C%BA%E8%A7%86%E8%A7%89%E5%AE%9E%E8%B7%B5%EF%BC%88%E8%A1%97%E6%99%AF%E5%AD%97%E7%AC%A6%E7%BC%96%E7%A0%81%E8%AF%86%E5%88%AB%EF%BC%89/Datawhale%20%E9%9B%B6%E5%9F%BA%E7%A1%80%E5%85%A5%E9%97%A8CV%20-%20Task%2001%20%E8%B5%9B%E9%A2%98%E7%90%86%E8%A7%A3%20.md
步骤:1、理解文档,下载数据集。
2、搭建运行环境:
这里出现问题挺多,时间紧张没搞完,先记录一下命令吧:
首先创建一个虚拟环境py37_torch131
conda create -n py37_torch131 python=3.7
激活环境,并安装pytorch1.3.1
source activate py37_torch131
conda install pytorch=1.3.1 torchvision cudatoolkit=10.0
通过以下命令一键安装所需其他依赖库:
pip install jupyter tqdm opencv-python matplotlib pandas
注意:此处出现报错问题,有些小包无法完整下载
解决方法:使用豆瓣镜像分别安装,不要一键安装
pip install opencv-python -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install matplotlib -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install pandas -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
conda install nb_conda
conda install ipykernel
python -m ipykernel install --user --name py37_torch131 --display-name “py37_cv”
依然存在问题:
import torch 成功
import torchvision 失败
今天先这样,明天修改更新文章》》