본문 바로가기

Linux

Basic Shell Script (for/if/echo) Example with Python Run

반응형

#!/bin/bash


for dataset in 3

do

    for exp in 30 31 32

    do


        if [ ${exp} -eq 30 ];then

    gamma=0.001

        elif [ ${exp} -eq 31 ];then

    gamma=0.01

        else 

    gamma=0.1

fi


python crowd_train.py \

--dataset_num ${dataset} \

--exp_id ${exp} \

--gpu_num 1 \

--rnn_size 32 \

--lambda_param 0.0001 \

--gamma_param ${gamma} \

--max_num_peds 40 \

--social_range 2 \

--grid_size 8 \

--batch_size 1 \

--is_pretrain 0 \

--load_pretrained 0 \

--data_load_step 2 \

--start_epoch 0


    done

done