This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Which file to send? | |
file_name = "REPO.tar" | |
from googleapiclient.http import MediaFileUpload | |
from googleapiclient.discovery import build | |
auth.authenticate_user() | |
drive_service = build('drive', 'v3') | |
def save_file_to_drive(name, path): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You can change the directory name | |
LOG_DIR = 'tb_logs' | |
!wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | |
!unzip ngrok-stable-linux-amd64.zip | |
import os | |
if not os.path.exists(LOG_DIR): | |
os.makedirs(LOG_DIR) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import keras | |
from keras.datasets import mnist | |
from keras.models import Sequential | |
from keras.layers import Dense, Dropout, Flatten | |
from keras.layers import Conv2D, MaxPooling2D | |
from keras import backend as K | |
from keras.callbacks import TensorBoard | |
batch_size = 128 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in *.HEIC | |
do sips -s format jpeg "${f}" -Z 1000 --out "${f%.*}.jpeg" | |
done |