Files
remote-sensing/run_parallel_gpu.sh
T

20 lines
780 B
Bash

#!/bin/bash
echo "Bắt đầu chạy song song 8 mô hình trên GPU..."
# Lưu output ra các file log để dễ kiểm tra
python train_land_xgboost_gpu.py > log_xgboost.txt 2>&1 &
python train_land_lightgbm_gpu.py > log_lightgbm.txt 2>&1 &
python train_land_random_forest_gpu.py > log_rf.txt 2>&1 &
python train_land_decision_tree_gpu.py > log_dt.txt 2>&1 &
python train_land_svm_gpu.py > log_svm.txt 2>&1 &
python train_land_cnn_gpu.py > log_cnn.txt 2>&1 &
python train_land_swin_unet_gpu.py > log_swin.txt 2>&1 &
python train_land_mobilenet_lraspp_gpu.py > log_mobilenet.txt 2>&1 &
echo "Tất cả các tiến trình đã được khởi chạy trong nền!"
echo "Đang đợi hoàn thành..."
wait
echo "✅ Hoàn thành chạy song song tất cả các mô hình!"