Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import pickle
import pylab as plt
from glob import glob
from PIL import Image
class Selector(object):
def __init__(self, data):
self.data = data
self.figure = plt.figure(figsize=(10, 5))
import pickle
import pylab as plt
from glob import glob
from PIL import Image
import matplotlib.patches as patches
class Detector(object):
def __init__(self, data):
self.data = data
import pickle
import pylab as plt
from glob import glob
from PIL import Image
class Labeler(object):
def __init__(self, data):
self.data = data
self.labels = [-1 for _ in data]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kskkwn
kskkwn / openMVG+openMVS.md
Last active December 1, 2022 05:10
openMVGとopenMVSを使うメモ

historyから適当に引っ張ってきたので間違っているかもしれない。

OpenMVGのインストール

git clone --recursive https://github.com/openMVG/openMVG.git
mkdir openMVG_Build
cd openMVG_Build
cmake -DCMAKE_BUILD_TYPE=RELEASE -DOpenMVG_BUILD_TESTS=ON -DOpenMVG_BUILD_EXAMPLES=ON . ../src/
make -j 7
@kskkwn
kskkwn / sbm.py
Last active April 23, 2017 04:26
# -*- coding: utf-8 -*-
# parameters ###### 調整したほうが良いかも
nb_k = 8
α = 6
a0 = b0 = 0.5
#####################
import numpy as np
from numpy import exp