Skip to content

Commit 09dcf9b

Browse files
authored
Update README.md
1 parent e6c23e0 commit 09dcf9b

1 file changed

Lines changed: 21 additions & 4 deletions

File tree

README.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,29 @@ Check out our interactive similarity search app, enabling both in-modal and cros
1313
https://astroclip.streamlit.app/
1414

1515
## Installation
16-
The training and evaluation code requires PyTorch 2.0. Additionally, an up-to-date eventlet is required for wandb. Note that the code has only been tested with the specified versions and also expects a Linux environment. To install the AstroCLIP package and its corresponding dependencies, please follow the code below.
16+
The training and evaluation code requires PyTorch 2.0. Additionally, an up-to-date eventlet is required for wandb. Note that the code has only been tested with the specified versions and also expects a Linux environment. To install the AstroCLIP package and its corresponding dependencies, please follow the code below. The install procedure is unfortunately a bit complex, execute the following cell. Do not restart kernel when prompted, instead run the cell below.
1717

1818
```bash
19-
pip install --upgrade pip
20-
pip install --upgrade eventlet torch lightning[extra]
21-
pip install -e .
19+
# Base install of required utilities
20+
!apt install python3-dev libcairo2-dev pkg-config
21+
22+
# Setting up proper torch version
23+
!pip install --upgrade pip
24+
!pip install lightning[extra]==2.3.3 boto3==1.28.17
25+
!pip install --upgrade pycairo datasets pyarrow
26+
!pip install --extra-index-url https://pypi.nvidia.com cuml-cu11
27+
!pip install --extra-index-url https://download.pytorch.org/whl/cu117 torch==2.0.0+cu117
28+
!pip install torchvision==0.15.0 torchmetrics==0.10.3 dotenv
29+
!pip install numpy==1.26.4 --force-reinstall
30+
31+
# Installing DiNOv2
32+
!pip install omegaconf fvcore iopath
33+
!pip install --no-deps git+https://github.com/facebookresearch/dinov2.git@2302b6bf46953431b969155307b9bed152754069
34+
35+
# Installing AstroCLIP
36+
!pip install astropy datasets huggingface_hub jaxtyping wandb networkx pyvis
37+
!pip uninstall -y transformers
38+
!pip install --no-deps git+https://github.com/PolymathicAI/AstroCLIP.git
2239
```
2340
**NOTE** The package provides the three shortcuts: `astroclip_trainer` and `spectrum_trainer`, which link to `astroclip/trainer.py`, and `image_trainer`, which links to `astroclip/astrodino/trainer.py`, as long as it is installed. The shortcuts are defined in the `project.scripts` section of the `pyproject.toml` file.
2441

0 commit comments

Comments
 (0)