I am Charmie

メモとログ

Windows

PyTorch and GPyTorch on Windows

改めてWindowsはクソ. 手順としては,以下のようにインストールしていく. cuDNNのインストールディレクトリを環境変数に設定しなくてもPyTorchのサンプルプログラムは動いたけど,本当に大丈夫なのかは謎. NVIDIA Driverのインストール NVIDIA Driverを最…

HTC Viveにwebカメラの映像を表示 (Windows 10)

タイトル通り.Viveと言ったらUnityでしょうと思っていたけど,Unreal Engine 4の方がよさそうだったので.良さそうと思った理由は,- 「 カメラの映像をリアルタイムで表示する」みたいなキーワードで検索した時にヒットした情報の質 (Unityはよくわからな…

HTC Vive setup

Running ViveSetup.exe, the computer takes 5 steps for Vive installation. Step 1: Software1. installs something, this could be Vive drivers and some SDK I guess,2. asks to create an HTC account,3. installs STEAM,4. asks to create a STEAM ac…

Anaconda: install OpenCV 3.4.1 on Windows 10

conda install ... opencv, conda install ... opencv-python ruined my environment built on Windows 10. The error seemed to related to PyQt and authentication/path setting but couldn't specify the true cause. So, instead of using anaconda bin…

Anaconda: OpenCV for Python 3.6 on Windows 10

OpenCV installation on Windows via Anaconda with conda -c conda-forge opencv makes import error like ImportError: DLL load failed: access denied. The solution is to use pip instead as pip install opencv-python.

Keras install error with Anaconda 5.0.0 for Python 3.5.4

"pip install keras" returns the following TypeError. The solution found at StackOverflow says to 1. install html5lib by conda install --force html5lib 2. install keras by pip install keras

Keras: plot_model returns pydot and graphviz related error on Windows

plot_model of Keras installed on Windows may return pydot and graphviz related error like "Graphviz's executables are not found'. The error cause is that the computer does not know the path of Graphviz's executable exactly mentioned as the…

TensorFlow's DLL import error on windows

We need the appropriate cuDNN and this kind of import error occurred by missing the right version. See this release note. TensorFlow 1.3.0 (and other prebuilt binaries) have been built with cuDNN 6 and TensorFlow 1.4 with cuDNN 7. cuDNN in…

install keras + tensorflow (GPU) to Windows using anaconda

Install Tensorflow and Keras Run Anaconda Prompt Install Tensorflow # pip install tensorflow-gpu Install Keras # pip install keras (Optional) Change Keras' backend from Theano to TensorFlow This step is optional if Keras uses Theano as its…

delete a file containing a space at the end of its extension on Windows

Suppose you have a file containing a space at the end of its extension on Windows. Let ABSOLUTE_PATH denote the absolute path of the file, the following command can erase the file. del \?\ABSOLUTE_PATH

Visual Studio 2015 with CMake

right after you installed visual studio 2015, CMake cannot find C and C++ compiler of it because Visual Studio 2015 installer didn't install any compiler. Although I have no ideas this is due to default or my install setting, I found the s…

Leap Motion SDK for Anaconda on Windows

Let ANACONDA_ROOT_DIR denote the root directory of Anaconda, C:\Anaconda2 in my case. copy Leap.py to ANACONDA_ROOT_DIR\Lib copy Leap.dll, LeapPython.pyd, msvcp120.dll, msvcr120.dll to ANACONDA_ROOT_DIR\DLLs

spyder crashes with pyqt

spyder installed in my Windows 10 PC failed to boot after update conda --all. The error cause is a kind of conflict between pyqt and pyside. A solution I found on the web is here and it worked on my case. The solution is re-install pyqt ve…

Anaconda: pydicom 1.0.0a on Windows 10

To install pydicom 1.0.0a to Anaconda on Windows 10, we should build the package by ourselves. git clone https://github.com/darcymason/pydicom.git cd pydicom python setup.py install Install with conda cloud installs the version 0.9.9. The …

Windows Surface Pro

研究費で購入したタブレットPCのスペックメモ 機種: Windows Surface Pro OS: Windows 8 Pro CPU: Core i5-3317U RAM: 4GB ストレージ: 256GB ディスプレイ: 10.6 inch 解像度: 1920x1080 タッチ: 10点タッチ

SDKs for Android Studio

Rajawali for 3D CG. Follow the 1st tutorial to play a simple program. Google VR SDK for easy access to sensors and for cardboard. Follow the getting started just to play sample programs.

Keras deep learning library installation on Windows

Keras, which works with either TensorFlow or Theano, is a library for using deep learning in Python. [code lang="bash"] step 1 prepare for the installation conda update conda conda update anaconda conda update --all conda install mingw lib…

OpenCV 3.1.0 prebuilt binary

Please use OpenCV 3.1.0 prebuilt binary provided at github, not at sourceforge. The one provided at sourceforge has some problem. Double clicking the exe file, I got an error message saying that can not open file "***/opencv-3.1.0.exe" as …

OpenCV 3.1.0 for Python: installation on Windows

OpenCV 3.1.0をPython 2.7から使うためのインストール手順 OpenCVのインストールはめんどくさいのでプレビルトライブラリを使う.opencv_contribの便利機能を使いたい場合は自前でコンパイルする必要がある. 前提条件: Anacondaを使ってPython2.7がインスト…

Install Theano on Windows

[code lang="bash"] Install MinGW compiler conda install mingw libpython Install Theano pip install theano [/code]

install Chainer on Windows

install Microsoft Visual C++ Compiler for Python 2.7 from here install Chainer by pip install chainer

install pygtk on Windows

download gtk+ package, uncompress the package, and set bin directory of the package to the system path. download pycairo_gtk-1.10.0-cp27-none-win_amd64.whl, pygtk-2.22.0-cp27-none-win_amd64.whl, and pygobject-2.28.6-cp27-none-win_amd64.whl…

enable anaconda search on Windows

[code lang="bash"] conda install anaconda-client [/code]

wget alternative on Windows 8

Using PowerShell software, the following command download from TARGET_URL as OUTPUT Invoke-WebRequest -Uri TARGET_URL -OutFile OUTPUT

Python 2.7 + OpenCV 3.0.0: installation on Windows

English notes is below the Japanese one. OpenCV 3.0.0をPython 2.7から使うためのインストール手順 Pythonのインストール Python-OpenCVを動かすには,Python本体に加えて少なくともNumPy, MatPlotLibのインストールが必要. 1.1. Anacondaのインストール…

gflags with Visual Studio

Run CMake Run Visual Studio as a superuser Open gflags.sln with Visual Studio Batch build ALL_BUILD, INSTALL, and RUN_TESTS The result is as folllows: ------ Rebuild All started: Project: INSTALL, Configuration: Release x64 ------ -- Insta…

CMake + Visual Studio from command prompt

[code lang="bash"] cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug nmake [/code]

Windows: C++ programming environment

Visual Studio 2013 for Windows Desktop Jp|En Boost pre-built binary We can select the install directory, say BOOST_DIR. I chose boost_1_55_0-msvc-12.0-64.exe because msvc-12.0 means VS2013, my PC is 64bit, and my ubuntu PC uses 1.54 (the p…

MS Office 2010 activation failure

The activation requires administrator right. Without the right, we will have 0x80070190 error. The solution is to run any of office application as an administrator and then do activation.

CMake + Visual Studio on command line

If you compile source code on command prompt with CMake and Visual Studio, you should specify some options as follows: cmake -G "NMake Makefiles" . nmake -G option specifies a makefile generator.