display.sh 934 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/env bash
  2. source ${HOME}/.miniconda3/etc/profile.d/conda.sh
  3. conda activate ${CONDA_ENV:-chainer7cu11}
  4. PYTHON="python"
  5. ############## Possible calls ##############
  6. ##### displays GT parts of CUB200
  7. # ./display.sh /home/korsch1/korsch/datasets/birds/cub200_11 \
  8. # CUB200 \
  9. # -s600 -n5 \
  10. # --features /home/korsch1/korsch/datasets/birds/features/{train,val}_16parts_gt.npz \
  11. # --ratio 0.31
  12. ##### displays NAC parts of CUB200
  13. # ./display.sh /home/korsch1/korsch/datasets/birds/NAC/2017-bilinear/ \
  14. # CUB200 \
  15. # -s600 -n5 \
  16. # --features /home/korsch1/korsch/datasets/birds/features/{train,val}_20parts.npz \
  17. # --ratio 0.31 \
  18. # --rescale_size 227
  19. ##### load from info file, displays Uniform parts of CUB200 that are in the GT bounding box
  20. # ./display.sh ~/DATA/info.yml \
  21. # CUB200
  22. # CUB200_UNI \
  23. # -s600 -n3 \
  24. # --parts_in_bb
  25. ############################################
  26. export DATA=$1
  27. $PYTHON display.py $@