GLEE/assets/INSTALL.md

40 lines
995 B
Markdown
Raw Normal View History

2024-03-19 10:31:00 +08:00
# Install
## Requirements
We test the codes in the following environments, other versions may also be compatible but Pytorch vision should be >= 1.7
- CUDA 12.1
- Python 3.9.2
- Pytorch 2.1.0
- Torchvison 0.16.0
2024-03-21 11:13:59 +08:00
## Install environment for GLEE
2024-03-19 10:31:00 +08:00
```
pip3 install shapely==1.7.1
pip3 install lvis
pip3 install scipy
pip3 install fairscale
pip3 install einops
pip3 install xformers
pip3 install tensorboard
pip3 install opencv-python-headless
pip3 install timm
pip3 install ftfy
pip3 install transformers==4.36.0
pip3 install -e .
pip3 install git+https://github.com/wjf5203/cocoapi.git#"egg=pycocotools&subdirectory=PythonAPI" --user
2024-03-30 23:36:09 +08:00
# Download pretrained Language Model (CLIP text encoder from transformers)
wget -P projects/GLEE/clip_vit_base_patch32/ https://huggingface.co/spaces/Junfeng5/GLEE_demo/resolve/main/GLEE/clip_vit_base_patch32/pytorch_model.bin
2024-03-19 10:31:00 +08:00
# compile Deformable DETR
cd projects/GLEE/glee/models/pixel_decoder/ops/
python3 setup.py build install --user
2024-03-30 23:36:09 +08:00
```