All code is highly based on Ildoo Kim's code (https://github.com/ildoonet/tf-openpose) and derived from the OpenPose Library (https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/LICENSE)
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
Classes | Without ensemble | With ensemble | Diff | |
---|---|---|---|---|
Overall | 46.4 | 52.0 | +5.6 |
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
Classes | Without ensemble | With ensemble | Diff | |
---|---|---|---|---|
tench | 0.5 | 13.5 | +13.0 | |
English springer | 43.0 | 50.4 | +7.4 | |
cassette player | 39.1 | 42.2 | +3.1 | |
chain saw | 22.5 | 58.2 | +35.7 | |
church | 20.1 | 19.3 | -0.8 | |
French horn | 76.1 | 79.3 | +3.2 | |
garbage truck | 91.2 | 92.5 | +1.3 | |
gas pump | 11.7 | 12.2 | +0.5 | |
golf ball | 72.8 | 67.0 | -5.8 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
def plates(stack, i, num_used, N, P, K): | |
# Brute force: O(K^N) | |
if i >= N: | |
return -1 | |
current_total = -1 | |
for n in range(K + 1): | |
if num_used + n > P: | |
break | |
elif num_used + n == P: | |
current_total = max(current_total, sum(stack[i][:n])) |
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
#include <cudnn.h> | |
#include <iostream> | |
int main(int argc, char** argv) { | |
std::cout << "CUDNN_VERSION: " << CUDNN_VERSION << std::endl; | |
return 0; | |
} |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
) | |
type String string | |
type Struct struct { |
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
# http://stackoverflow.com/questions/24685436/efficient-way-to-cluster-colors-using-k-nearest | |
import numpy as np | |
import cv2 | |
def nearest(i, j, src, knn, colors): | |
sample = np.reshape(src, (-1, 3)).astype(np.float32) | |
retval, result, neighbors, dist = knn.find_nearest(sample, 1) | |
return colors[result[0, 0]] |
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
#include <cstdio> | |
#include <string> | |
int n = 4; | |
int k = 15; | |
int a[] = {1, 2, 4, 7}; | |
bool dfs(int i, int sum) | |
{ | |
printf("i == %d, sum == %d\n", i, sum); |
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
#-*- coding: utf-8 -*- | |
import cv2 | |
from collections import defaultdict | |
class ImageFlip(object): | |
def __init__(self): | |
self._observers = [] |
NewerOlder