daily pastebin goal
44%
SHARE
TWEET

Untitled

a guest May 16th, 2018 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3.  
  4. create_and_copy() {
  5.     file_path="/cns/li-d/home/zhanghan_brain/brain/gan/model_eval_all/"
  6.     eval_folder="$file_path$1/eval"
  7.     command1="fileutil mkdir -p $eval_folder --gfs_user zhanghan_brain"
  8.     echo $command1
  9.     $command1
  10.     echo
  11.     ori_path="/cns/li-d/home/zhanghan_brain/brain/gan/"
  12.     copy_file="$ori_path$1/eval/imagenet_64"
  13.     command2="fileutil cp -a -f -R $copy_file $eval_folder  --gfs_user zhanghan_brain"
  14.     echo $command2
  15.     echo
  16.     $command2
  17. }
  18.  
  19. declare -a List=("8" "16" "32" "64")
  20. # declare -a List=("8")
  21. for f in ${List[@]}
  22. do
  23.     filename1="sngan_fancy_s_"$f"_d_40_g_10_gpu_4_fix_bug"
  24.    
  25.     command1="create_and_copy $filename1"
  26.     echo $command1
  27.     echo
  28.    $command1
  29.    filename2="sngan_fancybaseline_s"$f"_d_40_g_10_gpu_4"
  30.    command2="create_and_copy $filename2"
  31.    echo $command2
  32.    echo
  33.    $command2
  34. done
RAW Paste Data
Top