-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
189891c
commit 3900792
Showing
8 changed files
with
129 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +0,0 @@ | ||
contact_links: | ||
- name: Ask questions | ||
url: https://github.com/Jordan-Pierce/CoralNet-Toolbox/discussions/categories/q-a | ||
about: Please ask and answer questions here. | ||
- name: Ideas | ||
url: https://github.com/Jordan-Pierce/CoralNet-Toolbox/discussions/categories/ideas | ||
about: Please share your ideas here. | ||
- name: Ask questions from the GIS community | ||
url: https://gis.stackexchange.com | ||
about: To get answers from questions in the GIS community, please ask and answer questions here. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,84 @@ | ||
# Installation | ||
## **How to Install** | ||
|
||
## Stable release | ||
### Anaconda | ||
|
||
To install `CoralNet-Toolbox`, run this command in your terminal: | ||
It's recommended to use `Anaconda` to create an environment for the `toolbox`: | ||
```bash | ||
# cmd | ||
|
||
# Create and activate an environment | ||
conda create --name coralnet-toolbox python=3.10 -y | ||
conda activate coralnet-toolbox | ||
``` | ||
|
||
### Install | ||
|
||
Once this has finished, install the `toolbox`: | ||
```bash | ||
# cmd | ||
|
||
# Install | ||
pip install coralnet-toolbox | ||
``` | ||
|
||
This is the preferred method to install `CoralNet-Toolbox`, as it will always install the most recent stable release. | ||
### CUDA | ||
|
||
If you don't have [pip](https://pip.pypa.io) installed, this [Python installation guide](http://docs.python-guide.org/en/latest/starting/installation/) can guide you through the process. | ||
If you have `CUDA`, you should install the versions of `cuda-nvcc` and `cudatoolkit` that you | ||
need, and then install the corresponding versions of `torch` and `torchvision`. Below is an example of how that can be | ||
done using `CUDA` version 11.8: | ||
```bash | ||
# cmd | ||
|
||
## From sources | ||
|
||
To install `CoralNet-Toolbox` from sources, run this command in your terminal: | ||
# Example for CUDA 11.8 | ||
conda install nvidia/label/cuda-11.8.0::cuda-nvcc -y | ||
conda install nvidia/label/cuda-11.8.0::cuda-toolkit -y | ||
|
||
# Example for torch w/ CUDA 11.8 | ||
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118 --upgrade | ||
``` | ||
pip install git+https://github.com/Jordan-Pierce/CoralNet-Toolbox | ||
|
||
If `CUDA` is installed on your computer, and `torch` was built with it properly, you should see a `🐇` icon in the | ||
`toolbox` instead of a `🐢`; if you have multiple `CUDA` devices available, you should see a `🚀` icon, | ||
and if you're using a Mac with `Metal`, you should see an `🍎` icon (click on the icon to see the device information). | ||
|
||
See here for more details on [`cuda-nvcc`](https://anaconda.org/nvidia/cuda-nvcc), | ||
[`cudatoolkit`](https://anaconda.org/nvidia/cuda-toolkit), and [`torch`](https://pytorch.org/get-started/locally/) | ||
versions. | ||
|
||
### Run | ||
Finally, you can run the `toolbox` from the command line: | ||
```bash | ||
# cmd | ||
|
||
# Run | ||
coralnet-toolbox | ||
``` | ||
|
||
## GitHub Repository | ||
|
||
If you prefer to clone the repository and run the `toolbox` from the source code, you can do so with the following: | ||
|
||
```bash | ||
# cmd | ||
|
||
# Create and activate an environment | ||
conda create --name coralnet-toolbox python=3.10 -y | ||
conda activate coralnet-toolbox | ||
|
||
# Clone and enter the repository | ||
git clone https://github.com/Jordan-Pierce/CoralNet-Toolbox.git | ||
cd CoralNet-Toolbox | ||
|
||
# Install the latest | ||
pip install -e . | ||
|
||
# Install CUDA requirements (if applicable) | ||
conda install nvidia/label/cuda-11.8.0::cuda-nvcc -y | ||
conda install nvidia/label/cuda-11.8.0::cuda-toolkit -y | ||
|
||
# Example for torch w/ CUDA 11.8 | ||
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118 --upgrade | ||
|
||
# Run | ||
coralnet-toolbox | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters