No custom_interface.py
#1
by
zsytony
- opened
Entry Not Found for url: https://huggingface.co/Jzuluaga/accent-id-commonaccent_xlsr-en-english/resolve/main/custom_interface.py.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/mnt/workspace/zhangsongyang_nlp/anaconda3/envs/research/lib/python3.8/site-packages/speechbrain/pretrained/interfaces.py", line 108, in foreign_class
pymodule_local_path = fetch(
File "/mnt/workspace/zhangsongyang_nlp/anaconda3/envs/research/lib/python3.8/site-packages/speechbrain/pretrained/fetching.py", line 171, in fetch
raise ValueError("File not found on HF hub")
ValueError: File not found on HF hub
Jzuluaga
changed discussion status to
closed
Hi, thanks for update.
While , I meet a new error:
uggingface_hub.utils._errors.EntryNotFoundError: 404 Client Error. (Request ID: Root=1-64ea2ec4-7f0daad41891e5b51c79d368;3bb4b8d3-704c-4744-9a09-937e6a3416c1)
Entry Not Found for url: https://huggingface.co/Jzuluaga/accent-id-commonaccent_xlsr-en-english/resolve/main/label_encoder.txt.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/mnt/workspace/zhangsongyang_nlp/anaconda3/envs/research/lib/python3.8/site-packages/speechbrain/pretrained/interfaces.py", line 127, in foreign_class
run_on_main(
File "/mnt/workspace/zhangsongyang_nlp/anaconda3/envs/research/lib/python3.8/site-packages/speechbrain/utils/distributed.py", line 61, in run_on_main
func(*args, **kwargs)
File "/mnt/workspace/zhangsongyang_nlp/anaconda3/envs/research/lib/python3.8/site-packages/speechbrain/utils/parameter_transfer.py", line 247, in collect_files
path = fetch(
File "/mnt/workspace/zhangsongyang_nlp/anaconda3/envs/research/lib/python3.8/site-packages/speechbrain/pretrained/fetching.py", line 171, in fetch
raise ValueError("File not found on HF hub")
ValueError: File not found on HF hub
Hope you can update it.
Thanks
Songyang
zsytony
changed discussion status to
open
Also,
https://huggingface.co/Jzuluaga/accent-id-commonaccent_xlsr-en-english/blob/2395d8b9b4737a9f1eb4c2b71cd2dcd3026f22b2/hyperparams.yaml#L21 is 6
while the checkpoint shape in model.ckpt is (16,1024)
You are totally correct. I just fixed both errors.
thank you for spotting those two 🙏🏽
Jzuluaga
changed discussion status to
closed
Jzuluaga
changed discussion status to
open
Hi, also the data
should be updated.
I'm working on running this example
out_prob, score, index, text_lab = classifier.classify_file('Jzuluaga/accent-id-commonaccent_xlsr-en-english/data/us.wav')
Could you check now?
Great, it works now. Thanks for the quick update. It helps me a lot.
zsytony
changed discussion status to
closed
No worries! Happy I could help.