bev-project/archive_scripts/start_detection_training_fi...

30 lines
847 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# 3D检测训练修复shm问题
set -e
export PATH=/opt/conda/bin:$PATH
cd /workspace/bevfusion
echo "=========================================="
echo "BEVFusion 3D检测训练"
echo "=========================================="
echo ""
echo "配置: Camera + LiDAR Fusion"
echo "GPU: 8x Tesla V100S"
echo "优化: 减少workers避免shm不足"
echo "预计时间: 20-24小时"
echo ""
echo "=========================================="
echo ""
# 使用命令行参数减少workers_per_gpu
torchpack dist-run -np 8 python tools/train.py \
configs/nuscenes/det/transfusion/secfpn/camera+lidar/swint_v0p075/convfuser.yaml \
--model.encoders.camera.backbone.init_cfg.checkpoint pretrained/swint-nuimages-pretrained.pth \
--load_from pretrained/lidar-only-det.pth \
--data.workers_per_gpu 0
echo ""
echo "训练完成!"