Install Miniforge from the following link:
Miniforge provides a minimal conda installer for using the conda-forge package manager.
(if miniforge was not added to path, must open miniforge terminal window and cd into the server folder)
Once Miniforge is installed, create the environment using the provided environment.yaml file:
mamba env create --file environment.yaml
Download the required model checkpoint:
curl -L -o depth_anything_v2_metric_hypersim_vitb.pth "https://huggingface.co/depth-anything/Depth-Anything-V2-Metric-Hypersim-Base/resolve/main/depth_anything_v2_metric_hypersim_vitb.pth?download=true"
Or Install Manually
If you'd prefer to set up the environment manually, follow these steps:
mamba create -n ntt-pfe
mamba activate ntt-pfe
mamba install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
pip install fastapi ultralytics transformers aiofiles uvicorn
Download the model checkpoint manually:
curl -L -o depth_anything_v2_metric_hypersim_vitb.pth "https://huggingface.co/depth-anything/Depth-Anything-V2-Metric-Hypersim-Base/resolve/main/depth_anything_v2_metric_hypersim_vitb.pth?download=true"