alan-turing-institute / plankton-cefas-scivision

Example data for applying a pretrained ResNet-50 model to classification of plankton and running this model with the scivision tool
Apache License 2.0
0 stars 4 forks source link

Update intake file #1

Closed edwardchalstrey1 closed 2 years ago

edwardchalstrey1 commented 2 years ago

Update intake catalog (scivision.yml for dataset) to load from remote (Zenodo) zip file

edwardchalstrey1 commented 2 years ago

@acocac it turns out that intake does actually allow you to load the contents from a remote zip file, including hosted on Zenodo! 🥳

You can test with this updated catalog like so:

import intake
import matplotlib.pyplot as plt
cat = intake.open_catalog('scivision.yml')
ds = cat.plankton().to_dask()
plt.imshow(ds[0])
acocac commented 2 years ago

Awesome @edwardchalstrey1 @ots22 thanks!