Skip to content

Commit 2fb5977

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

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ The training and evaluation code requires PyTorch 2.0. Additionally, an up-to-da
1717

1818
```bash
1919
# Base install of required utilities
20-
!apt install python3-dev libcairo2-dev pkg-config
20+
apt install python3-dev libcairo2-dev pkg-config
2121

2222
# 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
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
3030

3131
# Installing DiNOv2
32-
!pip install omegaconf fvcore iopath
33-
!pip install --no-deps git+https://github.com/facebookresearch/dinov2.git@2302b6bf46953431b969155307b9bed152754069
32+
pip install omegaconf fvcore iopath
33+
pip install --no-deps git+https://github.com/facebookresearch/dinov2.git@2302b6bf46953431b969155307b9bed152754069
3434

3535
# 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
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
3939
```
4040
**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.
4141

0 commit comments

Comments
 (0)