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

48 lines
1.4 KiB

  1. #!/bin/bash
  2. #NOTE: DO NOT EDIT THIS FILE-- MAY RESULT IN INCOMPLETE SUBMISSIONS
  3. NOTEBOOKS="FullyConnectedNets.ipynb
  4. BatchNormalization.ipynb
  5. Dropout.ipynb
  6. ConvolutionalNetworks.ipynb
  7. PyTorch.ipynb
  8. TensorFlow.ipynb"
  9. CODE="cs231n/layers.py
  10. cs231n/classifiers/fc_net.py
  11. cs231n/optim.py
  12. cs231n/classifiers/cnn.py"
  13. REMOTE_DIR="cs231n-2019-assignment2"
  14. ZIP_FILENAME="a2.zip"
  15. FILES="${NOTEBOOKS} ${CODE}"
  16. for FILE in ${FILES}
  17. do
  18. if [ ! -f ${FILE} ]; then
  19. echo "Required file ${FILE} not found, Exiting."
  20. exit 0
  21. fi
  22. done
  23. if [ -d ${REMOTE_DIR} ]; then
  24. rm -r ${REMOTE_DIR}
  25. fi
  26. mkdir -p ${REMOTE_DIR}
  27. cp ${FILES} ${REMOTE_DIR}
  28. echo "### Zipping file ###"
  29. zip -r ${REMOTE_DIR}/${ZIP_FILENAME} . -x "*.git*" "*cs231n/datasets*" "*.ipynb_checkpoints*" "*README.md" "collectSubmission.sh" "*requirements.txt" "*__pycache__*" ".env/*" > assignment_zip.log
  30. echo ""
  31. echo "### Submitting to myth ###"
  32. echo "Type in your Stanford student ID (alphanumeric, *not* the 8-digit ID):"
  33. read -p "Student ID: " SUID
  34. echo ""
  35. echo "### Copying to ${SUID}@myth.stanford.edu:${REMOTE_DIR} ###"
  36. echo "Note: if myth is under heavy use, this may hang: If this happens, rerun the script."
  37. scp -r ${REMOTE_DIR} ${SUID}@myth.stanford.edu:~/
  38. echo ""
  39. echo "### Running remote submission script from ${SUID}@myth.stanford.edu:${REMOTE_DIR} ###"
  40. ssh ${SUID}@myth.stanford.edu "cd ${REMOTE_DIR} && /afs/ir/class/cs231n/grading/submit_a2 && exit"