Skip to content

List asteroid models in HF's hub#382

Merged
mpariente merged 1 commit intomasterfrom
list_models
Dec 8, 2020
Merged

List asteroid models in HF's hub#382
mpariente merged 1 commit intomasterfrom
list_models

Conversation

@mpariente
Copy link
Collaborator

Just so that we can do that.

In [6]: from asteroid.utils.hub_utils import model_list

In [7]: model_list(name_only=True)
Out[7]: 
['julien-c/DPRNNTasNet-ks16_WHAM_sepclean',
 'mpariente/ConvTasNet_WHAM_sepclean']

We'll exchange it with the current show_available_models etc.. when we get rid of Zenodo.

@jonashaag
Copy link
Collaborator

Looks good!

@jonashaag
Copy link
Collaborator

Of course the cache will not survive an interpreter restart. We could implement a file based cache if we find it too slow.

@mpariente mpariente merged commit f5939ed into master Dec 8, 2020
@mpariente mpariente deleted the list_models branch December 8, 2020 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants