# Detectron2 環境配置與安裝 ### 現有環境 * Ubuntu 20.04 * RTX-4090 (driver 525.60.13) ### Create Conda Env and Install packages Detectron2 官方文件有提到torch 跟 cuda version的搭配  還要考慮torch, torchvision, torchaudio的搭配  ``` # Set up new conda environment conda create -n segment conda activate segment # Install necessary packages conda install pytorch=1.10.1 torchvision=0.11.2 torchaudio cudatoolkit=11.3 -c pytorch -c conda-forge # Install Detectron2 python -m pip install 'git+https://github.com/facebookresearch/detectron2.git' ``` ### Test ``` from detectron2.data import MetadataCatalog MetadataCatalog.list() ``` ###### tags: `Segmentation`,`Public`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up