Windows のアプリケーションソフトウエアのリストとインストール及び設定.
※ ここでのインストールでは,「全ユーザ」が利用できるようにインストールする.(ソフトによっては,既定では, 特定ユーザのみで利用できるようにインストールされるため注意).
サイト内の関連ページ
謝辞:ここで紹介しているソフトウエアの作者に感謝します.
ソフトウエア類の利用条件は利用者で確認すること.
インストール手順: Microsoft Office 2019
TensorFlow 2.3 との相性から,NVIDIA CUDA ツールキット,NVIDIA cuDNN はバージョン指定.
システム環境変数 CUDNN_PATHは次のように設定する.
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1
where cudnn64_7.dll
「C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin\cudnn64_7.dll」 が表示される
Python の URL: https://www.python.org
■ インストール(あとのトラブルが起きにくいような手順を定めている)
そして,Python 3.8 の Windows 64ビット版のインストーラ (Windows x86-64 executable installer)をダウンロード.
where py where pip
where py では「C:\Windows\py.exe」 が表示され, where pip では「C:\Program Files\Python38\Scripts\pip.exe」 が表示されることを確認.
表示されないときは, システムの環境変数Pathに,C:\Program Files\Python38 と C:\Program Files\Python38\Scripts を追加
コマンドプロンプトを管理者として実行し,次のコマンドを実行.
python -m pip install -U pip setuptools python -m pip install -U jupyterlab jupyter jupyter-console jupytext spyder
コマンドプロンプトを管理者として実行し,次のコマンドを実行.
python -m pip uninstall -y tensorflow tensorflow-cpu tensorflow-gpu tensorflow_datasets tensorflow-hub keras python -m pip install -U tensorflow-gpu tensorflow_datasets tensorflow-hub keras matplotlib opencv-python python -m pip install -q git+https://github.com/tensorflow/docs python -m pip install -q git+https://github.com/tensorflow/examples.git
python -c "from tensorflow.python.client import device_lib; print(device_lib.list_local_devices())"
URL: https://github.com/matterport/Mask_RCNN
コマンドプロンプトを管理者として実行し,次のコマンドを実行.
mkdir c:\pytools cd c:\pytools rmdir /s /q Mask_RCNN cd c:\pytools git clone --recursive https://github.com/matterport/Mask_RCNN cd c:\pytools cd Mask_RCNN python setup.py build python setup.py install
コマンドプロンプトを管理者として実行し,次のコマンドを実行.
https://github.com/matterport/Mask_RCNN/blob/master/samples/demo.ipynb に記載のプログラムの先頭部分。
cd c:\pytools
cd Mask_RCNN
python
import os
import sys
# Root directory of the project
ROOT_DIR = os.path.abspath(".")
# Import Mask RCNN
sys.path.append(ROOT_DIR) # To find local version of the library
from mrcnn import utils
import mrcnn.model as modellib
from mrcnn import visualize
# Import COCO config
sys.path.append(os.path.join(ROOT_DIR, "samples/coco/")) # To find local version
import coco
# Directory to save logs and trained model
MODEL_DIR = os.path.join(ROOT_DIR, "logs")
# Local path to trained weights file
COCO_MODEL_PATH = os.path.join(ROOT_DIR, "mask_rcnn_coco.h5")
# Download COCO trained weights from Releases if needed
if not os.path.exists(COCO_MODEL_PATH):
utils.download_trained_weights(COCO_MODEL_PATH)
コマンドプロンプトを管理者として実行し,次のコマンドを実行.
python -m pip install -U pip setuptools python -m pip install -U numpy scipy h5py scikit-learn scikit-image seaborn pandas pandasql pillow pytest pyyaml cython bokeh statsmodels plotly sympy csvkit docopt pyproj flake8 protobuf pymc3 bs4 html5lib rope wrapt mkl mkl-include cffi wheel six holoviews sphinx bottleneck pygments numexpr xlrd xlsxwriter lxml graphviz pydot flask django redis pylint bz2file PyOpenGL msgpack pandas-bokeh ggplot prettyplotlib pybrain3 firebase-admin googletrans google-cloud-vision gpyocr azure-cognitiveservices-vision-computervision gensim mecab matplotlib-venn pygame gloo scikit-video scikits.datasmooth scikits.example scikits.fitting scikits.optimization scikits.vectorplot bottle zodb gdata
必要なものをインストール.次に手順を例示している. 利用者で判断すること.
コマンドプロンプトを管理者として実行し,次のコマンドを実行.
python -m pip install -q git+https://github.com/jrosebr1/imutils.git python -c "import imutils; print(imutils.__version__)" python -m pip install -q git+https://github.com/ipazc/mtcnn.git python -c "import mtcnn; print(mtcnn.__version__)" python -m pip install -q git+https://github.com/DinoTools/python-overpy.git python -c "import overpy; print(overpy.__version__)" python -m pip install -q git+https://github.com/ianare/exif-py.git python -c "import exifread; print(exifread.__version__)" python -m pip install -q git+https://github.com/mapado/haversine.git python -m pip install -q git+https://github.com/Turbo87/utm.git
新しくコマンドプロンプトを開き,次のコマンドを実行. Jupyter QtConsole が開けば OK.
jupyter qtconsole
jupyter notebook --generate-config
c.NotebookApp.contents_manager_class = "jupytext.TextFileContentsManager"
コマンドプロンプトを管理者として実行し,PyTorch のインストールを行う.
ニューラルネットの描画(例えば「tf.keras.utils.plot_model(model, show_shapes=True」で描画)のときに役に立つツール.
Visual Studio Code のインストールと設定を行う
プログラム作成と実行ができるエディタとして,Visual Studio Code を案内する.
拡張機能は,必要なものをインストールする.次に拡張機能を例示している.利用者で判断すること.
■ cmake: 「Add CMake path for All Users」をチェック
Visual Studio 2019 x64 コマンドプロンプトを管理者として実行
mkdir c:\pytools
cd c:\pytools
rmdir /s /q dlib
cd c:\pytools
git clone https://github.com/davisking/dlib
cd c:\pytools
cd dlib
rmdir /s /q build
mkdir build
cd build
del CMakeCache.txt
"C:\Program Files\Cmake\bin\cmake" -G "Visual Studio 16 2019" -T host=x64 ^
-DCMAKE_INSTALL_PREFIX="C:\pytools\dlib" ..
cmake --build . --config RELEASE --target INSTALL
cd ..
python setup.py build
python setup.py install
python -c "import dlib; print( dlib.__version__ )"
cd C:\pytools\dlib\python_examples
wget http://dlib.net/files/mmod_human_face_detector.dat.bz2
wget http://dlib.net/files/dlib_face_recognition_resnet_model_v1.dat.bz2
wget http://dlib.net/files/shape_predictor_5_face_landmarks.dat.bz2
wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2
"C:\Program Files\7-Zip\7z.exe" e mmod_human_face_detector.dat.bz2
"C:\Program Files\7-Zip\7z.exe" e dlib_face_recognition_resnet_model_v1.dat.bz2
"C:\Program Files\7-Zip\7z.exe" e shape_predictor_5_face_landmarks.dat.bz2
"C:\Program Files\7-Zip\7z.exe" e shape_predictor_68_face_landmarks.dat.bz2
del mmod_human_face_detector.dat.bz2
del dlib_face_recognition_resnet_model_v1.dat.bz2
del shape_predictor_5_face_landmarks.dat.bz2
del shape_predictor_68_face_landmarks.dat.bz2
python -c "import dlib; print( dlib.__version__ )"
# gdal が必要 rmdir /s /q geopandas cd c:\pytools git clone https://github.com/geopandas/geopandas cd geopandas python setup.py build python setup.py install # dlib が必要 cd c:\pytools rmdir /s /q face_recognition git clone https://github.com/ageitgey/face_recognition cd face_recognition python setup.py build python setup.py install # cd c:\pytools rmdir /s /q head-pose-estimation git clone https://github.com/lincolnhard/head-pose-estimation cd head-pose-estimation wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 "C:\Program Files\7-Zip\7z.exe" e shape_predictor_68_face_landmarks.dat.bz2 # cd c:\pytools rmdir /s /q PupilTracker cd c:\pytools git clone https://github.com/TobiasRoeddiger/PupilTracker cd c:\pytools git clone https://github.com/python-visualization/folium cd folium python setup.py build python setup.py install
ファイル「HelloWorld.java」の作成
public class HelloWorld
{
public static void main(String args[])
{
System.out.println("Hello Java World !");
}
}
コンパイルと実行
javac HelloWorld.java java HelloWorld
cd %LOCALAPPDATA% cd pip rmdir /s /q Cache
インストール時の設定
conda config --remove channels conda-forge conda upgrade --all conda clean --packages conda install -y tensorflow-gpu tensorflow-datasets python -c "import tensorflow as tf; print( tf.__version__ )" python -c "from tensorflow.python.client import device_lib; print(device_lib.list_local_devices())" conda install -y opencv pytorch keras conda install -y -c conda-forge dlib conda config --remove channels conda-forge conda install -y plotly csvkit docopt pyproj flake8 protobuf pymc3 conda install -y -c conda-forge statsmodels conda config --remove channels conda-forge conda config --remove channels conda-forge conda upgrade --all conda clean --packages conda search tensorflow conda search opencv
詳細は,Anaconda 3: Python 処理系, conda, spyder
インストール手順: Microsoft R Open
インストール手順: OpenJDK 14
起動チェック
URL: https://mergedoc.osdn.jp/
Java 関係のプラグインはインストール操作する
ファイル「HelloWorld.java」の作成
public class HelloWorld
{
public static void main(String args[])
{
System.out.println("Hello Java World !");
}
}
コンパイルと実行
javac HelloWorld.java java HelloWorld
ファイル「HelloWorld.java」の作成
public class HelloWorld
{
public static void main(String args[])
{
System.out.println("Hello Java World !");
}
}
コンパイルと実行
javac HelloWorld.java java HelloWorld
ユーザ名 public のプロファイルにインストールしたとする
Android Studio の設定は次のように行う.
Gradleユーザー・ホーム: C:\Users\public\.gradle に設定
C:\Users\public\Documents\AndroidStudio\DeviceExplorer に設定
idea.config.path=C:/Users/public/.AndroidStudio3.6/config idea.system.path=C:/Users/public/.AndroidStudio3.6/system
インストール手順: Notepad++
インストール手順: ビデオ編集ソフト avidemuxのインストール(Windows 上)
インストール手順: Google Earth Pro
インストール手順: OpenPose
■ インストールではパスを通す.getModels.bat を実行する.
インストール手順: Blender,その日本語化
Meshroom: https://alicevision.org/
インストール手順: MeshLab
インストール手順: CloudCompare
インストール手順: PCL
インストール手順: MakeHuman
■ MakeHuman 用のプラグイン,Blender用のプラグインをインストールする.
Windows Sysinernals の URL: https://docs.microsoft.com/ja-jp/previous-versions/bb545021(v=msdn.10)?redirectedfrom=MSDN
sdelete の URL: https://docs.microsoft.com/ja-jp/sysinternals/downloads/sdelete
defrag c: sdelete -z c:
本サイトは金子邦彦研究室のWebページです.サイトマップは,サイトマップのページをご覧下さい. 本サイト内の検索は,サイト内検索のページをご利用下さい.
問い合わせ先: 金子邦彦(かねこ くにひこ) ![]()