Skip to content

Instantly share code, notes, and snippets.

View Erotemic's full-sized avatar
An eroteme is a question mark

Jon Crall Erotemic

An eroteme is a question mark
View GitHub Profile
Timer unit: 1e-06 s
Pystone time: 0.05441 s
File: /home/joncrall/code/netharn/netharn/models/yolo2/light_postproc.py
Function: _get_boxes at line 202
Line # Hits Time Per Hit % Time Line Contents
==============================================================
202 @profiler.profile
Timer unit: 1e-06 s
Pystone time: 0.034663 s
File: /home/joncrall/code/netharn/netharn/models/yolo2/light_postproc.py
Function: _clip_boxes at line 139
Line # Hits Time Per Hit % Time Line Contents
==============================================================
139 @profiler.profile
# This is the CMakeCache file.
# For build in directory: /home/joncrall/code/caffe2/build_py3
# It was generated by CMake: /home/joncrall/.local/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
@Erotemic
Erotemic / bench.py
Created February 5, 2018 03:28
benchmark code
import ubelt as ub
import numpy as np
from PIL import Image
import six
import cv2
from clab.augment import augment_common
from clab.util import imutil
from clab import util
try:
import skimage
@Erotemic
Erotemic / output_shape_for.py
Created November 20, 2017 21:54
Output shape information for pytorch
import math
import torch
import torch.nn as nn
import torchvision
REGISTERED_OUTPUT_SHAPE_TYPES = []
def compute_type(type):
def _wrap(func):
@Erotemic
Erotemic / gist:cb14439beefa8ad61695c9f819f0839b
Created October 30, 2017 17:21
Output of serial fletch make
This file has been truncated, but you can view the full file.
(venv2) joncrall@calculex:~/code/fletch/build-py2-test$ make
Scanning dependencies of target PyBind11
[ 0%] Creating directories for 'PyBind11'
[ 0%] Performing download step (download, verify and extract) for 'PyBind11'
-- verifying file...
file='/home/joncrall/code/fletch/Downloads/pybind11-2.2.0.tar.gz'
-- File already exists and hash match (skip download):
file='/home/joncrall/code/fletch/Downloads/pybind11-2.2.0.tar.gz'
MD5='978b26aea1c6bfc4f88518ef33771af2'
-- extracting...
#!/bin/bash
codeblock()
{
if [ "-h" == "$1" ] || [ "--help" == "$1" ]; then
# Use codeblock to show the usage of codeblock, so you can use
# codeblock while you codeblock.
echo "$(codeblock '
Unindents code before its executed so you can maintain a pretty
indentation in your code file. Multiline strings simply begin
@Erotemic
Erotemic / activate_patch.diff
Created October 25, 2017 17:22
venv activate patch
--- /home/joncrall/venv2/bin/activate.old 2017-10-25 13:18:36.981600140 -0400
+++ /home/joncrall/venv2/bin/activate 2017-10-25 13:20:02.878155488 -0400
@@ -8,7 +8,15 @@
# ! [ -z ${VAR+_} ] returns true if VAR is declared at all
if ! [ -z "${_OLD_VIRTUAL_PATH+_}" ] ; then
PATH="$_OLD_VIRTUAL_PATH"
+ C_INCLUDE_PATH="$_OLD_C_INCLUDE_PATH"
+ LD_LIBRARY_PATH="$_OLD_VIRTUAL_LD_LIBRARY_PATH"
+
export PATH
(venv2) joncrall@calculex:~$ cd ~/code/VIAME/examples/tracking_pipelines
(venv2) joncrall@calculex:~/code/VIAME/examples/tracking_pipelines$ ~/code/VIAME/build-py2/install/bin/pipeline_runner -p ~/code/VIAME/examples/tracking_pipelines/simple_tracker.pipe
INFO: Could not load default logger factory. Using built-in logger.
2017-10-24 11:01:28.483 WARN registration.cxx(96): Path not found loading clusters: /home/joncrall/code/VIAME/build-py2/install/share/sprokit/pipelines/clusters
/home/joncrall/code/VIAME/build-py2/install/lib/python2.7/site-packages/sprokit/pipeline/__init__.py:30: RuntimeWarning: to-Python converter for std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > already registered; second conversion method ignored.
from config import *
/home/joncrall/code/VIAME/build-py2/install/lib/python2.7/site-packages/sprokit/pipeline/__init__.py:31: RuntimeWarning: to-Python converter for std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > already regi
Oct 22 16:05:36 Ooo gnome-session[2020]: ('file scheme: ', 'file')
Oct 22 16:05:36 Ooo gnome-session[2020]: ('Handling file: ', 'file:///home/joncrall/logs/sensors.2017-10-22_14:52.log')
Oct 22 16:05:36 Ooo gnome-session[2020]: ('file scheme: ', 'file')
Oct 22 16:05:36 Ooo gnome-session[2020]: ('Handling file: ', 'file:///home/joncrall/logs/sensors.2017-10-22_14:52.log')
Oct 22 16:05:36 Ooo gnome-session[2020]: ('file scheme: ', 'file')
Oct 22 16:05:36 Ooo gnome-session[2020]: ('Handling file: ', 'file:///home/joncrall/logs/sensors.2017-10-22_14:52.log')
Oct 22 16:05:36 Ooo gnome-session[2020]: ('file scheme: ', 'file')
Oct 22 16:05:36 Ooo gnome-session[2020]: ('Handling file: ', 'file:///home/joncrall/logs/sensors.2017-10-22_14:52.log')