Skip to content

Commit 71d8a63

Browse files
authored
Merge pull request #9 from Imageomics/cuda
Add device parameter and examples
2 parents ef37608 + 47168d6 commit 71d8a63

File tree

5 files changed

+1258
-3
lines changed

5 files changed

+1258
-3
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ pip install git+https://github.com/Imageomics/pybioclip
2929
If you have any issues with installation, please first upgrade pip by running `pip install --upgrade pip`.
3030

3131
## Python Package Usage
32+
33+
### Example Notebooks
34+
35+
- Predict species for images - [examples/PredictImages.ipynb](examples/PredictImages.ipynb) <a target="_blank" href="https://colab.research.google.com/github/Imageomics/pybioclip/blob/main/examples/PredictImages.ipynb">
36+
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>
37+
- Predict species for [iNaturalist](https://www.inaturalist.org/) images - [examples/iNaturalistPredict.ipynb](examples/iNaturalistPredict.ipynb) <a target="_blank" href="https://colab.research.google.com/github/Imageomics/pybioclip/blob/main/examples/iNaturalistPredict.ipynb">
38+
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
39+
</a>
40+
3241
### Predict species classification
3342

3443
```python
@@ -107,6 +116,7 @@ Options:
107116
--k=K number of top predictions to show [default: 5]
108117
--cls=CLS comma separated list of classes to predict, when specified the --rank and
109118
--k arguments are ignored [default: all]
119+
--device=DEVICE device to use for prediction (cpu or cuda or mps) [default: cpu]
110120
--output=OUTFILE print output to file OUTFILE [default: stdout]
111121
```
112122

0 commit comments

Comments
 (0)