run.sh 702 字节
Newer Older
C
Chang Xu 已提交
1
# 单卡启动
C
ceci3 已提交
2
export CUDA_VISIBLE_DEVICES=0
C
Chang Xu 已提交
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
python run.py \
    --model_dir='MobileNetV1_infer' \
    --model_filename='inference.pdmodel' \
    --params_filename='inference.pdiparams' \
    --save_dir='./save_quant_mobilev1/' \
    --batch_size=128 \
    --config_path='./configs/mobilev1.yaml'\
    --data_dir='ILSVRC2012'
    
# 多卡启动    
# python -m paddle.distributed.launch run.py \
#     --model_dir='MobileNetV1_infer' \
#     --model_filename='inference.pdmodel' \
#     --params_filename='inference.pdiparams' \
#     --save_dir='./save_quant_mobilev1/' \
#     --batch_size=128 \
#     --config_path='./configs/mobilev1.yaml'\
#     --data_dir='/workspace/dataset/ILSVRC2012/'