brew install mlops
If metadata data.yaml
is detected in the root of the repo, the plugin mlops
will automatically ask user if they would like to download the data.
> git clone https://github.com/david/ml
This hook warns you before you accidentally commit large files to git. It's very hard to reverse such an accidental commit, so it's better to prevent it in advance.
Since you will likely want this script to run in all your git repos, a script is attached to add this hook to all git repos you create / clone in the future.
Of course, you can just download it directly to the hooks in an existing git repo.
If you find this script useful, you might enjoy our more heavy-duty project FastDS, which aims to make it easier to work with versioning in data science projects.
[alias] | |
br = branch | |
sh = show | |
rb = rebase | |
rbi = rebase -i | |
st = status | |
ci = commit | |
cim = commit -m | |
cia = commit -a -m | |
co = checkout |
You can use in two ways.
Directly as the pre-commit hook in your .git/hooks folder.
With Husky by updating your package.json with:
"husky": {
#!/bin/sh | |
# Usage: gdrive_download 123-abc ./output.zip | |
function gdrive_download () { | |
CONFIRM=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate "https://drive.google.com/uc?export=download&id=$1" -O- | sed -En 's/.*confirm=([0-9A-Za-z_]+).*/\1/p') | |
wget --load-cookies /tmp/cookies.txt "https://drive.google.com/uc?export=download&confirm=$CONFIRM&id=$1" -O $2 | |
rm -f /tmp/cookies.txt | |
} |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker
now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start
import torch | |
# Original author: Francisco Massa: | |
# https://github.com/fmassa/object-detection.torch | |
# Ported to PyTorch by Max deGroot (02/01/2017) | |
def nms(boxes, scores, overlap=0.5, top_k=200): | |
"""Apply non-maximum suppression at test time to avoid detecting too many | |
overlapping bounding boxes for a given object. | |
Args: | |
boxes: (tensor) The location preds for the img, Shape: [num_priors,4]. |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
Ok, I geeked out, and this is probably more information than you need. But it completely answers the question. Sorry. ☺
Locally, I'm at this commit:
$ git show
commit d6cd1e2bd19e03a81132a23b2025920577f84e37
Author: jnthn <[email protected]>
Date: Sun Apr 15 16:35:03 2012 +0200
When I added FIRST/NEXT/LAST, it was idiomatic but not quite so fast. This makes it faster. Another little bit of masak++'s program.