refactoring
This commit is contained in:
@@ -111,7 +111,6 @@
|
||||
"import numpy as np\n",
|
||||
"from pathlib import Path\n",
|
||||
"import tensorflow as tf\n",
|
||||
"from captcha.GoogleDriveManager import GoogleDriveManager\n",
|
||||
"from captcha.CaptchaGenerator import CaptchaGenerator\n",
|
||||
"from captcha.CharNumConverter import CharNumConverter\n",
|
||||
"from captcha.DataSplitter import DataSplitter\n",
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
class GoogleDriveManager:
|
||||
|
||||
_googleDriveFolder = Path('/content/gdrive')
|
||||
_baseFolder = _googleDriveFolder / 'MyDrive/CAPTCHA/models/'
|
||||
|
||||
@staticmethod
|
||||
def mount():
|
||||
from google.colab import drive
|
||||
drive.mount(str(GoogleDriveManager._googleDriveFolder))
|
||||
|
||||
@staticmethod
|
||||
def uploadFolderToGoogleDrive(folder):
|
||||
pass
|
||||
# FK-FIXME:
|
||||
# !zip -r {folder}.zip {folder}/
|
||||
# !cp {folder}.zip {GoogleDriveManager._baseFolder}
|
||||
|
||||
@staticmethod
|
||||
def downloadFolderFromGoogleDrive(folder):
|
||||
pass
|
||||
# FK-FIXME:
|
||||
# !cp {GoogleDriveManager._baseFolder}/{folder}.zip .
|
||||
# !rm -rf {folder}
|
||||
# !unzip {folder}.zip
|
||||
Reference in New Issue
Block a user