I hereby claim:
- I am moorage on github.
- I am mattmoore (https://keybase.io/mattmoore) on keybase.
- I have a public key whose fingerprint is FEF6 302D 2C55 397C 0F6B 0757 1367 2E91 63F6 628A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
diff --git a/examples/detector.c b/examples/detector.c | |
index 0a31fc2..5764567 100644 | |
--- a/examples/detector.c | |
+++ b/examples/detector.c | |
@@ -364,7 +364,7 @@ void validate_detector_flip(char *datacfg, char *cfgfile, char *weightfile, char | |
if(fps) fclose(fps[j]); | |
} | |
if(coco){ | |
- fseek(fp, -2, SEEK_CUR); | |
+ fseek(fp, -2, SEEK_CUR); |
// Example usage: | |
// let github_details = github_graphql_query( | |
// &"some_oauth_access_token", | |
// &"query { viewer { email name login id location websiteUrl } }", | |
// )?; | |
// | |
// Cargo.toml: | |
// .. | |
// [dependencies] | |
// rocket = "0.3.11" |
// Example usage: | |
// let github_email = fetch_github_primary_email(&some_access_token)?; | |
// | |
// Cargo.toml: | |
// .. | |
// [dependencies] | |
// rocket = "0.3.11" | |
// curl = "0.4" | |
// serde = "1.0" | |
// serde_json = "1.0" |
var StorageBucket string // google storage bucket name | |
var PrefixToZip string // the prefix you want to zip | |
var ArchiveZipFilename string // the ultimate name of the zipfile, e.g. archive.zip | |
var GoogleCloudClientOption option.ClientOption // can load creds from a json file with this, e.g. GoogleCloudClientOption = option.WithCredentialsFile(jsonFile) | |
var LogContext string // additional logging string | |
// Download all files & zip (named ArchiveZipFilename) from gcloud prefix (PrefixToZip) | |
func main() { |
ubuntu-1204-precise-v20141028 | |
ubuntu-1204-precise-v20141031 | |
ubuntu-1204-precise-v20141212 | |
ubuntu-1204-precise-v20150127 | |
ubuntu-1204-precise-v20150316 | |
ubuntu-1204-precise-v20150616 | |
ubuntu-1204-precise-v20150625 | |
ubuntu-1204-precise-v20150831c | |
ubuntu-1204-precise-v20150910 | |
ubuntu-1204-precise-v20151119 |
cntr = _center_of_object_collection([ D.objects['obj_example1'], D.objects['obj_example2'], ... ]) | |
def _center_of_object_collection(obs): | |
min_x = max_x = min_y = max_y = min_z = max_z = None | |
for ob in obs: | |
local_vertices = ob.bound_box[:] | |
worldify = lambda p: ob.matrix_world * Vector(p[:]) | |
world_vertices = [worldify(p).to_tuple() for p in local_vertices] | |
for (x,y,z) in world_vertices: | |
if min_x is None or x < min_x: |
# On macOS, you'll need to build the wrapper and export PYTHONPATH=$PYTHONPATH:/____PATH_TO____/librealsense/build/wrappers/python/Debug | |
import pyrealsense2 as rs | |
import numpy as np | |
# Give time for auto-exposure to kick in | |
CAPTURES_BEFORE_SAVING = 10 | |
# Create a context object. This object owns the handles to all connected realsense devices | |
rs_pipeline = rs.pipeline() |
import numpy as np | |
import OpenEXR, Imath | |
from scipy.misc import imsave | |
INPUT_EXR_NORMALS_FILE = '1-world.exr' | |
OUTPUT_RGB_NORMAL_FILE = '1-world-to-camera.png' | |
INVERTED_CAMERA_QUARTERNION = np.array([0.8127532005310059, -0.456145316362381, 0.17738527059555054, 0.31606677174568176], dtype=np.float32) | |
X_CHANNEL_NAME = 'RenderLayer.Normal.X' | |
Y_CHANNEL_NAME = 'RenderLayer.Normal.Y' |
import os, fnmatch, argparse | |
import numpy as np | |
import OpenEXR, Imath, json | |
import shutil, glob | |
# TODO update to handle stereo camera | |
# | |
# python3 greppy_metaverse_dataset_renamer.py --p /path/to/dataset | |
SUBFOLDER_MAP = { |