yerfor / GeneFace

GeneFace: Generalized and High-Fidelity 3D Talking Face Synthesis; ICLR 2023; Official code
MIT License
2.44k stars 290 forks source link

无法下载 facebook/hubert-large-ls960-ft #199

Closed tailangjun closed 9 months ago

tailangjun commented 9 months ago

不知道是什么问题,我的服务器上无法下载 facebook/hubert-large-ls960-ft,推理时一直提示如下错误 Max retries exceeded with url: /facebook/hubert-large-ls960-ft/resolve/main/preprocessor_config.json (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f00100c6220>, 'Connection to huggingface.co timed out. (connect timeout=10)'))"), '(Request ID: 42eb3924-f231-4a47-adb4-045cbe62c217)')' thrown while requesting HEAD https://huggingface.co/facebook/hubert-large-ls960-ft/resolve/main/preprocessor_config.json

我本地 mac上使用浏览器可以正常访问 https://huggingface.co/facebook/hubert-large-ls960-ft/,我觉得我应该可以手动把 hubert-large-ls960-ft下下来,然后传到服务器的指定目录,但是我不知道该传到哪个目录下。我尝试过工程根目录和 data_gen/process_lrs3/,发现都不解决问题,有哪位大佬清楚,麻烦解答一下哈。

触发下载 facebook/hubert-large-ls960-ft的代码是这个 $ grep -rn hubert-large-ls960-ft data_gen/process_lrs3/process_audio_hubert.py:7:wav2vec2_processor = Wav2Vec2Processor.from_pretrained("facebook/hubert-large-ls960-ft") data_gen/process_lrs3/process_audio_hubert.py:9:hubert_model = HubertModel.from_pretrained("facebook/hubert-large-ls960-ft")

tailangjun commented 9 months ago

搞清楚了,下载到本地后,直接传入路径即可 Wav2Vec2Processor.from_pretrained("./hubert-large-ls960-ft") hubert_model = HubertModel.from_pretrained("./hubert-large-ls960-ft")

feifeitu1 commented 9 months ago

你好,我也遇到了这个问题,请问你是下载了哪一个文件啊,我怎么没找到。

tailangjun commented 9 months ago

你好,我也遇到了这个问题,请问你是下载了哪一个文件啊,我怎么没找到。

在浏览器上打开 https://huggingface.co/facebook/hubert-large-ls960-ft/,下载这些文件即可 config.json preprocessor_config.json pytorch_model.bin tokenizer_config.json vocab.json

feifeitu1 commented 9 months ago

好的,非常感谢~