You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

eval.sh 1.6 kB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash
  2. # Copyright 2020 Huawei Technologies Co., Ltd
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. # ============================================================================
  16. cd ../ || exit
  17. current_exec_path=$(pwd)
  18. echo ${current_exec_path}
  19. export RANK_SIZE=1
  20. export start=0
  21. export value=$((start + RANK_SIZE))
  22. export curtime
  23. curtime=$(date '+%Y%m%d-%H%M%S')
  24. echo "$curtime"
  25. rm ${current_exec_path}/device${start}_$curtime/ -rf
  26. mkdir ${current_exec_path}/device${start}_$curtime
  27. cd ${current_exec_path}/device${start}_$curtime || exit
  28. export RANK_ID=start
  29. export DEVICE_ID=start
  30. time python3 ${current_exec_path}/eval.py \
  31. --model tinynet_c \
  32. --num-classes 1000 \
  33. --batch-size 128 \
  34. --workers 8 \
  35. --data_path /path_to_ImageNet/\
  36. --GPU \
  37. --ckpt /path_to_ckpt/ \
  38. --dataset_sink > tinynet_c_eval.log 2>&1 &