-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsbatch_fid_test.sh
More file actions
36 lines (28 loc) · 1.22 KB
/
sbatch_fid_test.sh
File metadata and controls
36 lines (28 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
#SBATCH --job-name=fid_test
#SBATCH --output=sbatch_output/%j_fid_v4.out
#SBATCH --error=sbatch_output/%j_fid_v4.err
#SBATCH --time=1:00:00 # Increased time limit
#SBATCH --mem=80G # Increased memory
#SBATCH --partition=boost_usr_prod # Ensure this is your highest-resource partition
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --gres=gpu:1
#SBATCH --cpus-per-task=4 # Increased CPU cores per task
#SBATCH --account=IscrC_SAOU # Replace with your actual account name
# Load any necessary GPU modules (system-specific)
# module load cuda
source ../../envs/saeuron_cassano/bin/activate
# Set PyTorch memory configuration
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
echo "CUDA devices: $CUDA_VISIBLE_DEVICES"
nvidia-smi
echo "Computing FID scores."
python scripts/run_fid_all.py \
--p1 '/leonardo_work/IscrC_MAGNIFY/cassano/saeuron/ucanvas_dataset' \
--p2_base '/leonardo_work/IscrC_MAGNIFY/cassano/saeuron/sweep_outputs/objects/fine_tuned/from_scratch/v4/hp_search' \
--output_path_base '/leonardo_work/IscrC_MAGNIFY/cassano/saeuron/fid/fine_tuned/from_scratch/v4/hp_search' \
echo "FID scores computed."
deactivate
echo "Job completed."
echo "End time: $(date)"