Skip to content

Commit aeae58d

Browse files
committed
Add ipynb
1 parent 3a1f039 commit aeae58d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

kaggle.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"name":"kaggle.ipynb","private_outputs":true,"provenance":[],"collapsed_sections":[],"mount_file_id":"1hLtzjo4-3wFzEzKktEo7PCRz4UjXfWsQ","authorship_tag":"ABX9TyPk115V3KMhyFM3019ES0a2"},"kernelspec":{"name":"python3","display_name":"Python 3"},"accelerator":"GPU"},"cells":[{"cell_type":"code","metadata":{"id":"QaGpLRlThgZy"},"source":["import torch\n","\n","checkpoint = torch.load('/content/drive/MyDrive/ml/weight/latest_checkpoint.pth')\n","start_epoch = checkpoint['epoch']\n","print(start_epoch, 'load parameter')"],"execution_count":null,"outputs":[]},{"cell_type":"code","metadata":{"id":"a5SF_qufu9tv"},"source":["!tar -xvf /content/drive/MyDrive/ml/khu_competition.tar"],"execution_count":null,"outputs":[]},{"cell_type":"code","metadata":{"id":"HW3TRN0O1D-o"},"source":["!find /content/train -type f | wc -l"],"execution_count":null,"outputs":[]},{"cell_type":"code","metadata":{"id":"5NuMZX4pixxj"},"source":["!find /content/test -type f | wc -l"],"execution_count":null,"outputs":[]},{"cell_type":"code","metadata":{"id":"z4Si23qLhYvy"},"source":["cd /content/drive/MyDrive/ml"],"execution_count":null,"outputs":[]},{"cell_type":"code","metadata":{"id":"N1qJ6ookxtua"},"source":["!nvidia-smi"],"execution_count":null,"outputs":[]},{"cell_type":"code","metadata":{"id":"58hpXkoH1MR6"},"source":["import train\n","import importlib\n","importlib.reload(train)\n","\n","train.main()"],"execution_count":null,"outputs":[]},{"cell_type":"code","metadata":{"id":"jHry7nsei_1v"},"source":["import eval\n","import importlib\n","importlib.reload(eval)\n","\n","eval.main()"],"execution_count":null,"outputs":[]}]}

trash.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"name":"trash.ipynb","private_outputs":true,"provenance":[],"collapsed_sections":[],"authorship_tag":"ABX9TyOtlqyBDHBkQSm44WKml+Xq"},"kernelspec":{"name":"python3","display_name":"Python 3"}},"cells":[{"cell_type":"code","metadata":{"id":"5ZqXK-x7KgB4"},"source":["from pydrive.auth import GoogleAuth\n","from pydrive.drive import GoogleDrive\n","from google.colab import auth\n","from oauth2client.client import GoogleCredentials\n","\n","auth.authenticate_user()\n","gauth = GoogleAuth()\n","gauth.credentials = GoogleCredentials.get_application_default()\n","my_drive = GoogleDrive(gauth)\n","\n","for a_file in my_drive.ListFile({'q': \"trashed = true\"}).GetList():\n"," # print the name of the file being deleted.\n"," print(a_file['title'])\n"," # delete the file permanently.\n"," try:\n"," a_file.Delete()\n"," except:\n"," print('no')"],"execution_count":null,"outputs":[]}]}

0 commit comments

Comments
 (0)