You need to have Xcode installed to proceed.
xcode-select --install
sudo xcodebuild -license accept
import yaml | |
def read_yaml(path): | |
with open(path, 'r') as f: | |
config = yaml.safe_load(f) | |
return config |
You need to have Xcode installed to proceed.
xcode-select --install
sudo xcodebuild -license accept
Ryan downloaded the COCO data from here: https://cocodataset.org/#download
wget http://images.cocodataset.org/zips/val2017.zip
wget http://images.cocodataset.org/zips/test2017.zip
wget http://images.cocodataset.org/annotations/annotations_trainval2017.zip
Download instructions: https://towardsdatascience.com/downloading-and-using-the-imagenet-dataset-with-pytorch-f0908437c4be
The file has one line like this:
import subprocess | |
def run_shell(cmd): | |
out = subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True, encoding="UTF-8") | |
return out |
import os | |
path_of_this_file = os.path.abspath(__file__) | |
dir_of_this_file = os.path.dirname(os.path.abspath(__file__)) |
""" | |
Writes float16 data to a tfrecord as raw bytes and reads it back. | |
Based on: | |
https://stackoverflow.com/questions/40184812/tensorflow-is-it-possible-to-store-tf-record-sequence-examples-as-float16 | |
""" | |
import argparse | |
import numpy as np | |
import tensorflow as tf |
def path_is_in_git(repo, path): | |
""" | |
Check if path is tracked by git. | |
""" | |
returncode = None | |
try: | |
cmd = 'git ls-files --error-unmatch %s' % (path) | |
_ = subprocess.check_output(cmd, | |
cwd=repo, | |
shell=True, |
# install chrome with .deb | |
# setup terminal profile | |
sudo apt update | |
sudo apt dist-upgrade | |
sudo apt install vim htop screen tmux | |
sudo apt install git | |
# create ssh key: | |
ssh-keygen -t rsa |