CosmiQ / solaris

CosmiQ Works Geospatial Machine Learning Analysis Toolkit
https://solaris.readthedocs.io
Apache License 2.0
411 stars 112 forks source link

Documentation on how to install solaris in colab #468

Closed lappemic closed 2 weeks ago

lappemic commented 1 year ago

Documentation request summary

Through googling i found several colab's which used solaris as a main package. Unfortunately none of them are running properly since some dependency issues and outdated libraries (even though some of the notebooks were less than 4 month old). I would find some documentation on this really helpful. At least for me, this would have saved me quite some time.

Task detail and notes

To get the notebooks running i ran the following cells:

!pip install -q condacolab
import condacolab
condacolab.install()

then

!wget https://raw.githubusercontent.com/CosmiQ/solaris/main/environment-gpu.yml
!mamba env update -n base -f environment-gpu.yml

restarting the runtime manually or with follwoing cell

import os
os.kill(os.getpid(), 9)

then solaris gets installed without any dependency issues:

!pip install solaris

after this solars can be imported:

import solaris