Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List asteroid models in HF's hub #382

Merged
merged 1 commit into from
Dec 8, 2020
Merged

List asteroid models in HF's hub #382

merged 1 commit into from
Dec 8, 2020

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