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

Uploading ESPnet2 model to Zenodo #52

Open
DanBerrebbi opened this issue Sep 20, 2021 · 6 comments
Open

Uploading ESPnet2 model to Zenodo #52

DanBerrebbi opened this issue Sep 20, 2021 · 6 comments

Comments

@DanBerrebbi
Copy link

DanBerrebbi commented Sep 20, 2021

Hello, I am trying to export my ESPnet2 model to Zenodo but I got this issue pasted below.
The cause of this is because my status_code is 403 (blocked) here

What should I do to upload the model ?

Thank you !

Traceback (most recent call last):
  File "/jet/home/berrebbi/miniconda3/envs/espnet/bin/espnet_model_zoo_upload", line 8, in <module>
    sys.exit(main())
  File "/jet/home/berrebbi/miniconda3/envs/espnet/lib/python3.7/site-packages/espnet_model_zoo/zenodo_upload.py", line 297, in main
    upload_espnet_model(**kwargs)
  File "/jet/home/berrebbi/miniconda3/envs/espnet/lib/python3.7/site-packages/espnet_model_zoo/zenodo_upload.py", line 230, in upload_espnet_model
    publish=publish,
  File "/jet/home/berrebbi/miniconda3/envs/espnet/lib/python3.7/site-packages/espnet_model_zoo/zenodo_upload.py", line 141, in upload
    r = zenodo.create_deposition()
  File "/jet/home/berrebbi/miniconda3/envs/espnet/lib/python3.7/site-packages/espnet_model_zoo/zenodo_upload.py", line 48, in create_deposition
    raise RuntimeError(r.json()["message"])
  File "/jet/home/berrebbi/miniconda3/envs/espnet/lib/python3.7/site-packages/requests/models.py", line 897, in json
    return complexjson.loads(self.text, **kwargs)
  File "/jet/home/berrebbi/miniconda3/envs/espnet/lib/python3.7/site-packages/simplejson/__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "/jet/home/berrebbi/miniconda3/envs/espnet/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/jet/home/berrebbi/miniconda3/envs/espnet/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ```

@kan-bayashi
Copy link
Member

@DanBerrebbi
Copy link
Author

Yes I did

@sw005320
Copy link
Collaborator

zenodo issues seem to happen again.
We'll work on switching HF hub as a default model sharing space.

@SujaySKumar
Copy link

SujaySKumar commented Oct 22, 2021

Facing the same issue:

Traceback (most recent call last):
  File "/ocean/projects/cis210027p/skumar8/espnet/tools/venv/bin/espnet_model_zoo_upload", line 8, in <module>
    sys.exit(main())
  File "/ocean/projects/cis210027p/skumar8/espnet/tools/venv/lib/python3.9/site-packages/espnet_model_zoo/zenodo_upload.py", line 296, in main
    upload_espnet_model(**kwargs)
  File "/ocean/projects/cis210027p/skumar8/espnet/tools/venv/lib/python3.9/site-packages/espnet_model_zoo/zenodo_upload.py", line 202, in upload_espnet_model
    upload(
  File "/ocean/projects/cis210027p/skumar8/espnet/tools/venv/lib/python3.9/site-packages/espnet_model_zoo/zenodo_upload.py", line 140, in upload
    r = zenodo.create_deposition()
  File "/ocean/projects/cis210027p/skumar8/espnet/tools/venv/lib/python3.9/site-packages/espnet_model_zoo/zenodo_upload.py", line 47, in create_deposition
    raise RuntimeError(r.json()["message"])
  File "/ocean/projects/cis210027p/skumar8/espnet/tools/venv/lib/python3.9/site-packages/requests/models.py", line 910, in json
    return complexjson.loads(self.text, **kwargs)
  File "/ocean/projects/cis210027p/skumar8/espnet/tools/venv/lib/python3.9/site-packages/simplejson/__init__.py", line 525, in loads
    return _default_decoder.decode(s)
  File "/ocean/projects/cis210027p/skumar8/espnet/tools/venv/lib/python3.9/site-packages/simplejson/decoder.py", line 370, in decode
    obj, end = self.raw_decode(s)
  File "/ocean/projects/cis210027p/skumar8/espnet/tools/venv/lib/python3.9/site-packages/simplejson/decoder.py", line 400, in raw_decode
    return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@DanBerrebbi How did you resolve the issue? Just try again later? @

@DanBerrebbi
Copy link
Author

Hi @SujaySKumar , I did not solve the issue, we decided to upload it to HuggingFace and not Zenodo so maybe you should do the same. For HuggingFace, I think there is a stage 16 now in asr.sh that automatically does it (or ping me on slack if it does not work)

@sw005320
Copy link
Collaborator

I added a bit more details of uploading a model to the HF hub in https://github.com/espnet/espnet_model_zoo#huggingface
Can you check it and try it?

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

No branches or pull requests

4 participants