SWivid / F5-TTS

Official code for "F5-TTS: A Fairytaler that Fakes Fluent and Faithful Speech with Flow Matching"
https://arxiv.org/abs/2410.06885
MIT License
6.6k stars 764 forks source link

ValueError: Unknown scheme for proxy URL URL('socks://127.0.0.1:1089/') #381

Closed jakeytan closed 2 days ago

jakeytan commented 2 days ago

(f5)$ f5-tts_infer-gradio Traceback (most recent call last): File "/home/jk/miniconda3/envs/f5/bin/f5-tts_infer-gradio", line 5, in from f5_tts.infer.infer_gradio import main File "/media/jk/000BCAF400087F74/F5-TTS/F5-TTS/src/f5_tts/infer/infer_gradio.py", line 8, in import gradio as gr File "/home/jk/miniconda3/envs/f5/lib/python3.10/site-packages/gradio/init.py", line 3, in import gradio._simple_templates File "/home/jk/miniconda3/envs/f5/lib/python3.10/site-packages/gradio/_simple_templates/init.py", line 1, in from .simpledropdown import SimpleDropdown File "/home/jk/miniconda3/envs/f5/lib/python3.10/site-packages/gradio/_simple_templates/simpledropdown.py", line 6, in from gradio.components.base import Component, FormComponent File "/home/jk/miniconda3/envs/f5/lib/python3.10/site-packages/gradio/components/init.py", line 1, in from gradio.components.annotated_image import AnnotatedImage File "/home/jk/miniconda3/envs/f5/lib/python3.10/site-packages/gradio/components/annotated_image.py", line 13, in from gradio import processing_utils, utils File "/home/jk/miniconda3/envs/f5/lib/python3.10/site-packages/gradio/processing_utils.py", line 99, in sync_client = httpx.Client(transport=sync_transport) File "/home/jk/miniconda3/envs/f5/lib/python3.10/site-packages/httpx/_client.py", line 693, in init proxy_map = self._get_proxy_map(proxies or proxy, allow_env_proxies) File "/home/jk/miniconda3/envs/f5/lib/python3.10/site-packages/httpx/_client.py", line 218, in _get_proxy_map return { File "/home/jk/miniconda3/envs/f5/lib/python3.10/site-packages/httpx/_client.py", line 219, in key: None if url is None else Proxy(url=url) File "/home/jk/miniconda3/envs/f5/lib/python3.10/site-packages/httpx/_config.py", line 338, in init raise ValueError(f"Unknown scheme for proxy URL {url!r}") ValueError: Unknown scheme for proxy URL URL('socks://127.0.0.1:1089/')

SWivid commented 2 days ago

are you using system proxy?

jakeytan commented 2 days ago

are you using system proxy?

yes ! qv2ray

SWivid commented 2 days ago

so it's a network problem, try using a proxy that will not take over all system (e.g. not using tunnel mode) and if you could connect to hf directly, not using proxy.

jakeytan commented 2 days ago

ok,it is going on already, thanks a lot !

SWivid commented 2 days ago

ok, that's great~

jakeytan commented 2 days ago

huggingface_hub.utils._errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.

SWivid commented 2 days ago

huggingface_hub.utils._errors.LocalEntryNotFoundError: An error happened while trying to locate the file on the Hub and we cannot find the requested files in the local cache. Please check your connection and try again or make sure your Internet connection is on.

yeh, so cannot connect directly, then try using a proxy that will not take over all system (e.g. not using tunnel mode) or you can manually download the ckpt files, and following instruction in readme to load the local ckpt file.