同步操作将从 DeepSpark/DeepSparkHub 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
This is the official Pytorch/PytorchLightning implementation of the paper:
Run, Don't Walk: Chasing Higher FLOPS for Faster Neural Networks
Jierun Chen, Shiu-hong Kao, Hao He, Weipeng Zhuo, Song Wen, Chul-Ho Lee, S.-H. Gary Chan
IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2023
We propose a simple yet fast and effective partial convolution (PConv), as well as a latency-efficient family of architectures called FasterNet.
Clone this repo and install the required packages:
pip install -r requirements.txt
Sign up and login in ImageNet official website, then choose 'Download' to download the whole ImageNet dataset. Specify /path/to/imagenet
to your ImageNet path in later training process.
The ImageNet dataset path structure should look like:
imagenet
├── train
│ └── n01440764
│ ├── n01440764_10026.JPEG
│ └── ...
├── train_list.txt
├── val
│ └── n01440764
│ ├── ILSVRC2012_val_00000293.JPEG
│ └── ...
└── val_list.txt
Remark: Training will prompt wondb visualization options, you'll need a W&B account to visualize, choose "3" if you don't need to.
FasterNet-T0 training on ImageNet with a 8-GPU node:
# You can change the dataset path '--data_dir' according to your own dataset path !!!
python3 train_test.py -g 0,1,2,3,4,5,6,7 --num_nodes 1 -n 4 -b 4096 -e 2000 \
--data_dir /path/to/imagenet \
--pin_memory --wandb_project_name fasternet \
--model_ckpt_dir ./model_ckpt/$(date +'%Y%m%d_%H%M%S') \
--cfg cfg/fasternet_t0.yaml
FasterNet-T0 training on ImageNet-1K with a 1-GPU node:
# You can change the dataset path '--data_dir' according to your own dataset path !!!
python3 train_test.py -g 0 --num_nodes 1 -n 4 -b 512 -e 2000 \
--data_dir /path/to/imagenet \
--pin_memory --wandb_project_name fasternet \
--model_ckpt_dir ./model_ckpt/$(date +'%Y%m%d_%H%M%S') \
--cfg cfg/fasternet_t0.yaml
To train other FasterNet variants, --cfg
need to be changed. You may also want to change the training batch size -b
.
GPUs | FP32 |
---|---|
BI-V100 x8 | test_acc1 71.832 val_acc1 71.722 |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。