Paper:SBCFormer: Lightweight Network Capable of Full-size ImageNet Classification at 1 FPS on Single Board Computers(https://arxiv.org/abs/2311.03747)
Note: Before training the classification model, you need to enter the train_gpu.py file to modify the data_root and batchsize and epochs of your own data set.The code turns on automatic mixed precision by default. If your GPU(s) does not support automatic mixed precision (you can use torch.cuda.is_bf16_supported() to check), you need to modify it in the util.engine.py file.
Run command: torchrun --nproc_per_node=8 train_gpu.py
Run command: CUDA_VISIBLE_DEVICES=1,3 torchrun --nproc_per_node=2 train_gpu.py
Run command: python train_gpu.py