by using the provided ``environment.yml`` file. In a terminal, navigate to the
**cloned git repositories root directory** (``/pysegcnn``) and type:
```bash
conda env create -f environment.yml
```
This may take a while. The first line in ``environment.yml`` defines the
environment name, in this case ``pysegcnn``. Activate your environment using:
```bash
conda activate pysegcnn
```
After activating your environment, install the version of PyTorch and CUDA
that your system supports by following this [guide](https://pytorch.org/get-started/locally/).
Having [successfully installed](https://pytorch.org/get-started/locally/#linux-verification)
PyTorch, type:
```bash
pip install-e .
```
Make sure you run the above command **from this repositories root directory
within the activated ``pysegcnn`` conda environment**. If successful,
you should be able to import ``pysegcnn`` from any Python interpreter using
```python
importpysegcnn
```
## Datasets
Currently, the following publicly available satellite imagery datasets are
supported out-of-the-box:
- Spatial Procedures for Automated Removal of Cloud and Shadow ([SPARCS](https://www.usgs.gov/land-resources/nli/landsat/spatial-procedures-automated-removal-cloud-and-shadow-sparcs-validation)) by Hughes M.J. & Hayes D.J. ([2014](https://www.mdpi.com/2072-4292/6/6/4907))