MiDaS test
Requirements
Python 3.10.x
git clone
code: sh
cd MiDaS
事前学習済みモデルのダウンロード
code:sh
or
MiDas/weights フォルダの中に入れる
仮想環境の構築
code:sh
conda install pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 pytorch-cuda=11.7 -c pytorch -c nvidia
code:yaml
# environment.yaml 内のバージョン変更
- pytorch::pytorch=1.13.1
- torchvision=0.14.1
code:sh
conda env create -f environment.yaml
python run.py --model_type dpt_large --input_path ./input --output_path ./output