Primary informations
Username: $kojovic
Cluster: $BAOBAB
Description
If i launch the below provided script it gets cancelled.
Steps to Reproduce
run sbatch tracking_extraction.job
actual script:
#!/bin/bash
#SBATCH --time=12:00:00
#SBATCH --partition=shared-gpu
#SBATCH --cpus-per-task=10
#SBATCH --mem=64G
#SBATCH --gres=gpu:1
#SBATCH --array=0-9 # If you have 10 videos
#SBATCH --output=logs/%x_%A_%a.out
#SBATCH --error=logs/%x_%A_%a.err
## Activate virtual environment
source /home/share/schaer2/anshul/miniconda3/etc/profile.d/conda.sh
conda activate video_extraction
# Pick the correct line from video_list.txt based on SLURM_ARRAY_TASK_ID
# Each sub-job processes one video.
VIDEO=$(sed -n "$((SLURM_ARRAY_TASK_ID+1))p" /srv/beegfs/scratch/shares/schaer_sensit/ESCS/video_list.txt)
OUT_PATH="/home/share/schaer2/anshul/tracks"
echo "Processing video: $VIDEO"
# Call your processing script with the selected VIDEO
python 1_track_people.py --video-file $VIDEO --output-dir $OUT_PATH
Expected Result
iterate over videos stored in : /srv/beegfs/scratch/shares/schaer_sensit/ESCS/video_list.txt