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
#!/usr/bin/python | |
#! -*- encoding: utf-8 -*- | |
# This file is part of OpenMVG (Open Multiple View Geometry) C++ library. | |
# Python script to launch OpenMVG SfM tools on an image dataset | |
# | |
# usage : python tutorial_demo.py | |
# |
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
import training # 自前の学習器 | |
import chainer.serializers | |
import chainer.functions as F | |
import argparse | |
import numpy as np | |
from PIL import Image | |
import os | |
from bottle import route, run |
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
# アプリケーションのプライバシーポリシー | |
このアプリケーションは、個人情報を収集したり公開しません。 | |
-------------------------------------------------------------------------- | |
# Application privacy policy | |
This application does not collect or publish any personal information. |
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
# ライブラリ名をもとにVisualStudioのDEBUG/RELEASEで自動的に参照ライブラリが切り替わるようなファイルを生成する | |
# たとえばこんなの | |
# #ifdef _DEBUG | |
# #pragma comment(lib, "opencv_core310d.lib") | |
# #else | |
# #pragma comment(lib, "opencv_core310.lib") | |
# #endif | |
# | |
# 実行するにはSet-ExecutionPolicy RemoteSigned でスクリプトを有効化しておくことを忘れずに |
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
# python3ではcPickleがなくなったので、pickleを使う | |
import pickle; | |
#coding: utf-8 | |
import numpy as np | |
import chainer | |
from chainer import cuda | |
import chainer.functions as F | |
import chainer.computational_graph as cg |