赞
踩
README.md
(1) 安装依赖
- git clone https://github.com/pytorch/vision
- cd vision
- python setup.py install
-
- git clone https://github.com/NVIDIA/apex.git
- cd apex
- python setup.py install --cuda_ext --cpp_ext
(2) 数据集准备
- pip install gdown
- pip install --upgrade gdown #!!important!!
- gdown 0B8-rUzbwVRk0c054eEozWG9COHM
-
- python prepare.py
-
- gdown 1jjE85dRCMOgRtvJ5RQV9-Afs-2_5dY3O
(3) 执行训练
python train.py --gpu_ids 0 --name ft_ResNet50 --train_all --batchsize 32 --data_dir your_data_path
(4) 执行测试
python test.py --gpu_ids 0 --name ft_ResNet50 --test_dir your_data_path --batchsize 32 --which_epoch 59
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。