GithubHelp home page GithubHelp logo

Comments (29)

zz1997361 avatar zz1997361 commented on July 18, 2024 2

Hello, @xueliang! Thanks for the created issue. I generated requirements via pipreqs, but obviously the versions are incorrect, causing conflicts.

For now, we can be guided by the solution proposed by @Priyanshu-hawk.

I will study the versions of the packages next week and will contribute if I am not taken into the army on Monday (alas, they want to take me into it).

If I don't get in touch, there won't be any improvements for a year. So I hope for the best.

I didn't expect that so many people would be interested in my project! But this whole situation in my life no longer depends on me. I respect all of you and I don't want to let you down. We will wait for Monday.

Best Wishes for u!

from heygenclone.

Priyanshu-hawk avatar Priyanshu-hawk commented on July 18, 2024 1

On linux (For Windows IDK 😂)

python3 -m venv venv

source venv/bin/activate

Initially install numpy 1.22.0
pip install numpy==1.22.0

Then do
pip3 install -r requirements.txt

first few packages need numpy 1.22.0, then it will uninstall 1.22.0 and then install 1.23.0 automatically.

OS - Ubuntu 22.04
Python - Python 3.10.12
cuda - 11.8
cudnn - 8.6.0

from heygenclone.

YinXiaojieCSDN avatar YinXiaojieCSDN commented on July 18, 2024 1

On linux (For Windows IDK 😂)

python3 -m venv venv

source venv/bin/activate

Initially install numpy 1.22.0 pip install numpy==1.22.0

Then do pip3 install -r requirements.txt

first few packages need numpy 1.22.0, then it will uninstall 1.22.0 and then install 1.23.0 automatically.

OS - Ubuntu 22.04 Python - Python 3.10.12 cuda - 11.8 cudnn - 8.6.0

I can not solve it by yours method. Do you have another method?

from heygenclone.

douzhihao avatar douzhihao commented on July 18, 2024 1

Hello, there may be various version conflicts during installation. We look forward to your update。。。

from heygenclone.

xufengnian avatar xufengnian commented on July 18, 2024 1

I solve this problem.You can try to using conda or other tool to create a pure environment,such as
conda create -n heygen python=3.10.8
conda activate heygen

then you can create a file as first.txt

TTS==0.17.6
pyannote.core==5.0.0
pyannote.database==5.0.1
pyannote.pipeline==3.0.1
torchaudio==2.0.2
soundfile==0.12.1
numpy==1.22.0

then you can execute this command
pip install -r first.txt

and delete these items from requirements.txt

then you can execute this command
pip install -r requirements.txt

from heygenclone.

stakeswky avatar stakeswky commented on July 18, 2024 1

As for now someone can try this script in order to install all requirements (use original requirements.txt):

import subprocess

subprocess.run('conda create -n heygenclone python=3.9.0', shell=True)
subprocess.run('conda activate heygenclone', shell=True)

requirements = []

with open('requirements.txt', 'r') as file:
    for i, line in enumerate(file):
        line = line.strip()
        if line:
            requirements.append(line)

for i, requirement in enumerate(requirements):
    package_name = requirement
    if '=' in requirement:
        package_name = requirement.split('=')[0]
    print(f'[{i + 1}/{len(requirements)}] Installing package "{package_name}"...')
    subprocess.run(f'pip install {requirement}', shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)

print('Done')

As i am a MacOs user, i have some troubles with this solution. What about you? But this solution just installs requirements with all conflicts. This is not a final solution. I am still working on

Guys im still working on it. I hope that this problem will be finally fixed in a week. @xufengnian how can i contact you? Maybe discord?

maybe i meet a new problem。 An error occured while synchronizing the model guillaumekln/faster-whisper-large-v2 from the Hugging Face Hub: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/guillaumekln/faster-whisper-large-v2/revision/main (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fbb005baa10>, 'Connection to huggingface.co timed out. (connect timeout=None)'))"), '(Request ID: 8fa59278-4925-4a65-ba22-fe02576aac4d)') Trying to load the model directly from the local cache, if it exists. Traceback (most recent call last): File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/connection.py", line 203, in _new_conn sock = connection.create_connection( File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection raise err File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/util/connection.py", line 73, in create_connection sock.connect(sa) TimeoutError: [Errno 110] Connection timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/connectionpool.py", line 791, in urlopen response = self._make_request( File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/connectionpool.py", line 492, in _make_request raise new_e File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/connectionpool.py", line 468, in _make_request self._validate_conn(conn) File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1097, in _validate_conn conn.connect() File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/connection.py", line 611, in connect self.sock = sock = self._new_conn() File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/connection.py", line 212, in _new_conn raise ConnectTimeoutError( urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7fbb005baa10>, 'Connection to huggingface.co timed out. (connect timeout=None)')

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/connectionpool.py", line 845, in urlopen retries = retries.increment( File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/util/retry.py", line 515, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/guillaumekln/faster-whisper-large-v2/revision/main (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fbb005baa10>, 'Connection to huggingface.co timed out. (connect timeout=None)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/faster_whisper/utils.py", line 98, in download_model return huggingface_hub.snapshot_download(repo_id, **kwargs) File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn return fn(*args, **kwargs) File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/_snapshot_download.py", line 189, in snapshot_download repo_info = api.repo_info(repo_id=repo_id, repo_type=repo_type, revision=revision, token=token) File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn return fn(*args, **kwargs) File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 2057, in repo_info return method( File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn return fn(*args, **kwargs) File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 1866, in model_info r = get_session().get(path, headers=headers, timeout=timeout, params=params) File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/requests/sessions.py", line 602, in get return self.request("GET", url, **kwargs) File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 63, in send return super().send(request, *args, **kwargs) File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/requests/adapters.py", line 507, in send raise ConnectTimeout(e, request=request) requests.exceptions.ConnectTimeout: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/guillaumekln/faster-whisper-large-v2/revision/main (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fbb005baa10>, 'Connection to huggingface.co timed out. (connect timeout=None)'))"), '(Request ID: 8fa59278-4925-4a65-ba22-fe02576aac4d)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/digital/yxj/code/HeyGenClone-main/translate.py", line 44, in translate( File "/home/digital/yxj/code/HeyGenClone-main/translate.py", line 33, in translate engine = Engine(config, output_language) File "/home/digital/yxj/code/HeyGenClone-main/core/engine.py", line 36, in init self.whisper = load_model('large-v2', device=device_type, compute_type='int8') File "/home/digital/yxj/code/HeyGenClone-main/core/whisperx/asr.py", line 51, in load_model model = WhisperModel(whisper_arch, File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/faster_whisper/transcribe.py", line 122, in init model_path = download_model( File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/faster_whisper/utils.py", line 114, in download_model return huggingface_hub.snapshot_download(repo_id, **kwargs) File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn return fn(*args, **kwargs) File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/_snapshot_download.py", line 172, in snapshot_download with open(ref_path) as f: FileNotFoundError: [Errno 2] No such file or directory: '/home/digital/.cache/huggingface/hub/models--guillaumekln--faster-whisper-large-v2/refs/main'

u must use the vpn

from heygenclone.

BrasD99 avatar BrasD99 commented on July 18, 2024

Hello, @xueliang! Thanks for the created issue. I generated requirements via pipreqs, but obviously the versions are incorrect, causing conflicts.

For now, we can be guided by the solution proposed by @Priyanshu-hawk.

I will study the versions of the packages next week and will contribute if I am not taken into the army on Monday (alas, they want to take me into it).

If I don't get in touch, there won't be any improvements for a year. So I hope for the best.

I didn't expect that so many people would be interested in my project! But this whole situation in my life no longer depends on me. I respect all of you and I don't want to let you down. We will wait for Monday.

from heygenclone.

BrasD99 avatar BrasD99 commented on July 18, 2024

@wanghao-007, as far as I understand, you managed to launch HeyGenClone. Can you share how you managed to establish requirements and its dependencies with the guys?

from heygenclone.

BrasD99 avatar BrasD99 commented on July 18, 2024

@YinXiaojieCSDN, @douzhihao
Guys, I've bought time until mid-November. Now the main task is to solve the problem of dependencies. I'll do it in a week, please be patient. I will be glad to see pull requests with corrections from other interested parties. I repeat, the situation is my fault, I trusted pipreqs.

I am very much hampered by the situation with the army. 😞 Psychologically, it is very difficult to bring the project to an end, all the thoughts that I will go to the army (I don't want that). I am extremely peace-loving and believe that peace and love will eventually overtake our whole world.

from heygenclone.

BrasD99 avatar BrasD99 commented on July 18, 2024

@xufengnian, I like your solution. I think I'll make a bash script to install. I'm already doing it. As soon as I test it, I will publish the changes. Thanks!

For anyone who doesn't want to wait, here are the separated requirements:
TTS==0.17.6
pyannote.core==5.0.0
pyannote.database==5.0.1
pyannote.pipeline==3.0.1
torchaudio==2.0.2
soundfile==0.12.1
numpy==1.22.0

audiostretchy==1.3.5
beautifulsoup4==4.12.2
ctranslate2==3.20.0
deepface==0.0.79
faster_whisper==0.9.0
ffmpeg_python==0.2.0
googletrans==3.1.0a0
librosa==0.8.1
lws==1.2.7
moviepy==1.0.3
nltk==3.8.1
onnxruntime==1.16.0
opencv_python==4.7.0.68
opencv_python_headless==4.7.0.68
pandas==1.5.3
pyannote.audio==2.1.1
pyannote.metrics==3.2.1
pydub==0.25.1
Requests==2.31.0
scenedetect==0.6.2
scipy==1.11.3
torch==2.0.1
tqdm==4.65.0
transformers==4.33.2
ultralytics==8.0.147

from heygenclone.

YinXiaojieCSDN avatar YinXiaojieCSDN commented on July 18, 2024

@xufengnian, I like your solution. I think I'll make a bash script to install. I'm already doing it. As soon as I test it, I will publish the changes. Thanks!

For anyone who doesn't want to wait, here are the separated requirements: TTS==0.17.6 pyannote.core==5.0.0 pyannote.database==5.0.1 pyannote.pipeline==3.0.1 torchaudio==2.0.2 soundfile==0.12.1 numpy==1.22.0

audiostretchy==1.3.5 beautifulsoup4==4.12.2 ctranslate2==3.20.0 deepface==0.0.79 faster_whisper==0.9.0 ffmpeg_python==0.2.0 googletrans==3.1.0a0 librosa==0.8.1 lws==1.2.7 moviepy==1.0.3 nltk==3.8.1 onnxruntime==1.16.0 opencv_python==4.7.0.68 opencv_python_headless==4.7.0.68 pandas==1.5.3 pyannote.audio==2.1.1 pyannote.metrics==3.2.1 pydub==0.25.1 Requests==2.31.0 scenedetect==0.6.2 scipy==1.11.3 torch==2.0.1 tqdm==4.65.0 transformers==4.33.2 ultralytics==8.0.147

I meet a new promblem
image

from heygenclone.

xufengnian avatar xufengnian commented on July 18, 2024

@xufengnian, I like your solution. I think I'll make a bash script to install. I'm already doing it. As soon as I test it, I will publish the changes. Thanks!
For anyone who doesn't want to wait, here are the separated requirements: TTS==0.17.6 pyannote.core==5.0.0 pyannote.database==5.0.1 pyannote.pipeline==3.0.1 torchaudio==2.0.2 soundfile==0.12.1 numpy==1.22.0
audiostretchy==1.3.5 beautifulsoup4==4.12.2 ctranslate2==3.20.0 deepface==0.0.79 faster_whisper==0.9.0 ffmpeg_python==0.2.0 googletrans==3.1.0a0 librosa==0.8.1 lws==1.2.7 moviepy==1.0.3 nltk==3.8.1 onnxruntime==1.16.0 opencv_python==4.7.0.68 opencv_python_headless==4.7.0.68 pandas==1.5.3 pyannote.audio==2.1.1 pyannote.metrics==3.2.1 pydub==0.25.1 Requests==2.31.0 scenedetect==0.6.2 scipy==1.11.3 torch==2.0.1 tqdm==4.65.0 transformers==4.33.2 ultralytics==8.0.147

I meet a new promblem image

the only package confict is speechbrain,you can delete torch==2.0.1 from requirements.txt,install other packages, when other packages install successfully,you can try to execute pip install torch==2.0.1

from heygenclone.

BrasD99 avatar BrasD99 commented on July 18, 2024

Guys im still working on it. I hope that this problem will be finally fixed in a week.
@xufengnian how can i contact you? Maybe discord?

from heygenclone.

BrasD99 avatar BrasD99 commented on July 18, 2024

As for now someone can try this script in order to install all requirements (use original requirements.txt):

import subprocess

subprocess.run('conda create -n heygenclone python=3.9.0', shell=True)
subprocess.run('conda activate heygenclone', shell=True)

requirements = []

with open('requirements.txt', 'r') as file:
    for i, line in enumerate(file):
        line = line.strip()
        if line:
            requirements.append(line)

for i, requirement in enumerate(requirements):
    package_name = requirement
    if '=' in requirement:
        package_name = requirement.split('=')[0]
    print(f'[{i + 1}/{len(requirements)}] Installing package "{package_name}"...')
    subprocess.run(f'pip install {requirement}', shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)

print('Done')

As i am a MacOs user, i have some troubles with this solution. What about you? But this solution just installs requirements with all conflicts. This is not a final solution. I am still working on it.

from heygenclone.

YinXiaojieCSDN avatar YinXiaojieCSDN commented on July 18, 2024

As for now someone can try this script in order to install all requirements (use original requirements.txt):

import subprocess

subprocess.run('conda create -n heygenclone python=3.9.0', shell=True)
subprocess.run('conda activate heygenclone', shell=True)

requirements = []

with open('requirements.txt', 'r') as file:
    for i, line in enumerate(file):
        line = line.strip()
        if line:
            requirements.append(line)

for i, requirement in enumerate(requirements):
    package_name = requirement
    if '=' in requirement:
        package_name = requirement.split('=')[0]
    print(f'[{i + 1}/{len(requirements)}] Installing package "{package_name}"...')
    subprocess.run(f'pip install {requirement}', shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)

print('Done')

As i am a MacOs user, i have some troubles with this solution. What about you? But this solution just installs requirements with all conflicts. This is not a final solution. I am still working on

Guys im still working on it. I hope that this problem will be finally fixed in a week. @xufengnian how can i contact you? Maybe discord?

maybe i meet a new problem。
An error occured while synchronizing the model guillaumekln/faster-whisper-large-v2 from the Hugging Face Hub:
(MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/guillaumekln/faster-whisper-large-v2/revision/main (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fbb005baa10>, 'Connection to huggingface.co timed out. (connect timeout=None)'))"), '(Request ID: 8fa59278-4925-4a65-ba22-fe02576aac4d)')
Trying to load the model directly from the local cache, if it exists.
Traceback (most recent call last):
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/connection.py", line 203, in _new_conn
sock = connection.create_connection(
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
raise err
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/util/connection.py", line 73, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Connection timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/connectionpool.py", line 791, in urlopen
response = self._make_request(
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/connectionpool.py", line 492, in _make_request
raise new_e
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/connectionpool.py", line 468, in _make_request
self._validate_conn(conn)
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1097, in _validate_conn
conn.connect()
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/connection.py", line 611, in connect
self.sock = sock = self._new_conn()
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/connection.py", line 212, in _new_conn
raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7fbb005baa10>, 'Connection to huggingface.co timed out. (connect timeout=None)')

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/connectionpool.py", line 845, in urlopen
retries = retries.increment(
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/urllib3/util/retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/guillaumekln/faster-whisper-large-v2/revision/main (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fbb005baa10>, 'Connection to huggingface.co timed out. (connect timeout=None)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/faster_whisper/utils.py", line 98, in download_model
return huggingface_hub.snapshot_download(repo_id, **kwargs)
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
return fn(*args, **kwargs)
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/_snapshot_download.py", line 189, in snapshot_download
repo_info = api.repo_info(repo_id=repo_id, repo_type=repo_type, revision=revision, token=token)
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
return fn(*args, **kwargs)
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 2057, in repo_info
return method(
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
return fn(*args, **kwargs)
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 1866, in model_info
r = get_session().get(path, headers=headers, timeout=timeout, params=params)
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/utils/_http.py", line 63, in send
return super().send(request, *args, **kwargs)
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/requests/adapters.py", line 507, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /api/models/guillaumekln/faster-whisper-large-v2/revision/main (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7fbb005baa10>, 'Connection to huggingface.co timed out. (connect timeout=None)'))"), '(Request ID: 8fa59278-4925-4a65-ba22-fe02576aac4d)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/digital/yxj/code/HeyGenClone-main/translate.py", line 44, in
translate(
File "/home/digital/yxj/code/HeyGenClone-main/translate.py", line 33, in translate
engine = Engine(config, output_language)
File "/home/digital/yxj/code/HeyGenClone-main/core/engine.py", line 36, in init
self.whisper = load_model('large-v2', device=device_type, compute_type='int8')
File "/home/digital/yxj/code/HeyGenClone-main/core/whisperx/asr.py", line 51, in load_model
model = WhisperModel(whisper_arch,
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/faster_whisper/transcribe.py", line 122, in init
model_path = download_model(
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/faster_whisper/utils.py", line 114, in download_model
return huggingface_hub.snapshot_download(repo_id, **kwargs)
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
return fn(*args, **kwargs)
File "/home/digital/anaconda3/envs/heygenclone/lib/python3.10/site-packages/huggingface_hub/_snapshot_download.py", line 172, in snapshot_download
with open(ref_path) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/digital/.cache/huggingface/hub/models--guillaumekln--faster-whisper-large-v2/refs/main'

from heygenclone.

BrasD99 avatar BrasD99 commented on July 18, 2024

Still looking for a solution. Everything is complicated by the fact that I have a MacOs on which I need to install miniconda/miniforge to work correctly. I want to make a correct and common solution for all platforms.

from heygenclone.

CodingRockz avatar CodingRockz commented on July 18, 2024

Still looking for a solution. Everything is complicated by the fact that I have a MacOs on which I need to install miniconda/miniforge to work correctly. I want to make a correct and common solution for all platforms.

Is this working fully on your MacOS ? and the issue is only on windows?

from heygenclone.

douzhihao avatar douzhihao commented on July 18, 2024

I am very pleased to see your recent reply, which indicates that you have not been affected by the war and everything will be better.
I adjusted the version parameters of each plugin, and the project started running, but the logic did not run smoothly. The problem was located in: invalid source language; Obviously, the content and language of the video, as well as the language I want to convert, were detected above.

Face detector [scene_id: 1]: 752it [03:02, 4.13it/s]
这是一段测试用语 zh en
Traceback (most recent call last):
File "D:\Dev\HeyGenClone\translate.py", line 44, in
translate(
File "D:\Dev\HeyGenClone\translate.py", line 34, in translate
engine(video_filename, output_filename)
File "D:\Dev\HeyGenClone\core\engine.py", line 97, in call
dst_text = self.text_helper.translate(speaker['text'], src_lang=lang, dst_lang=self.output_language[:-1])
File "D:\Dev\HeyGenClone\core\translator.py", line 9, in translate
output = self.translator.translate(text, src=src_lang, dest=dst_lang)
File "D:\Anaconda\envs\heygen\lib\site-packages\googletrans\client.py", line 192, in translate
raise ValueError('invalid source language')
ValueError: invalid source language

I ran in a Windows environment and was also affected by the plugin version issue on macOS. I am trying to synchronize the environment,
Looking forward to your reply. If possible, I hope to see your updates every day so that I know you are not involved in the war. May the world be peaceful

from heygenclone.

xufengnian avatar xufengnian commented on July 18, 2024

我很高兴看到你最近的回信,这表明你没有受到战争的影响,一切都会好起来的。 我调整了每个插件的版本参数,项目开始运行,但逻辑运行不顺畅。问题位于:源语言无效;显然,视频的内容和语言,以及我想要转换的语言,都在上面检测到了。

人脸检测[scene_id:1]:752 it [03:02,4.13it/s] 这是一段测试用语 zh en 回溯(最近的呼叫最后一次): 文件“D:\Dev\HeyGenClone\Myrtle. py”,第44行, translate( 文件“D:\Dev\HeyGenClone\Myrtle. py”,第34行,翻译中 引擎(视频文件名,输出文件名) 文件“D:\Dev\HeyGenClone\core\engine.py”,第97行,调用中 dst_text = self.text_helper.translate(speaker 'text'],src_lang=lang,dst_lang=self.output_language[:-1]) 文件“D:\Dev\HeyGenClone\core\translator.py”,第9行,翻译中 输出= self.translator.translate(text,src=src_lang,dest=dst_lang) 文件“D:\Anaconda\envs\heygen\lib\site-packages\googletrans\client.py”,第192行,翻译 raise ValueError('无效的源语言') ValueError:无效的源语言

我在Windows环境中运行,也受到macOS上插件版本问题的影响。我在尝试同步环境, 期待您的回复。如果可能的话,我希望每天都能看到你的更新,这样我就知道你没有卷入战争。愿世界和平

估计你是**人,我就中文直接回你了,这个是个小bug,源语言是中文,被识别成zh,但是google的translator只认zh-CN不认识zh,所以你自己改下core/translator.py,加个判断逻辑就好了
image

from heygenclone.

xufengnian avatar xufengnian commented on July 18, 2024

伙计们,我还在努力,我希望这个问题能在一周内得到解决。 @徐丰年怎么联系你?也许是不和谐?

we can using wechat or telegram,to be honest,I think this project is complex,although I solve some bugs,but it still working hardly,I will try another projects like vits+whispher+wav2lip in future.Best wishes!

from heygenclone.

CodingRockz avatar CodingRockz commented on July 18, 2024

我很高兴看到你最近的回信,这表明你没有受到战争的影响,一切都会好起来的。 我调整了每个插件的版本参数,项目开始运行,但逻辑运行不顺畅。问题位于:源语言无效;显然,视频的内容和语言,以及我想要转换的语言,都在上面检测到了。
人脸检测[scene_id:1]:752 it [03:02,4.13it/s] 这是一段测试用语 zh en 回溯(最近的呼叫最后一次): 文件“D:\Dev\HeyGenClone\Myrtle. py”,第44行, translate( 文件“D:\Dev\HeyGenClone\Myrtle. py”,第34行,翻译中 引擎(视频文件名,输出文件名) 文件“D:\Dev\HeyGenClone\core\engine.py”,第97行,调用中 dst_text = self.text_helper.translate(speaker 'text'],src_lang=lang,dst_lang=self.output_language[:-1]) 文件“D:\Dev\HeyGenClone\core\translator.py”,第9行,翻译中 输出= self.translator.translate(text,src=src_lang,dest=dst_lang) 文件“D:\Anaconda\envs\heygen\lib\site-packages\googletrans\client.py”,第192行,翻译 raise ValueError('无效的源语言') ValueError:无效的源语言
我在Windows环境中运行,也受到macOS上插件版本问题的影响。我在尝试同步环境, 期待您的回复。如果可能的话,我希望每天都能看到你的更新,这样我就知道你没有卷入战争。愿世界和平

估计你是**人,我就中文直接回你了,这个是个小bug,源语言是中文,被识别成zh,但是google的translator只认zh-CN不认识zh,所以你自己改下core/translator.py,加个判断逻辑就好了 image

can we discuss on discord ? i will see if i can find telegram.

from heygenclone.

CodingRockz avatar CodingRockz commented on July 18, 2024

I am very pleased to see your recent reply, which indicates that you have not been affected by the war and everything will be better. I adjusted the version parameters of each plugin, and the project started running, but the logic did not run smoothly. The problem was located in: invalid source language; Obviously, the content and language of the video, as well as the language I want to convert, were detected above.

Face detector [scene_id: 1]: 752it [03:02, 4.13it/s] 这是一段测试用语 zh en Traceback (most recent call last): File "D:\Dev\HeyGenClone\translate.py", line 44, in translate( File "D:\Dev\HeyGenClone\translate.py", line 34, in translate engine(video_filename, output_filename) File "D:\Dev\HeyGenClone\core\engine.py", line 97, in call dst_text = self.text_helper.translate(speaker['text'], src_lang=lang, dst_lang=self.output_language[:-1]) File "D:\Dev\HeyGenClone\core\translator.py", line 9, in translate output = self.translator.translate(text, src=src_lang, dest=dst_lang) File "D:\Anaconda\envs\heygen\lib\site-packages\googletrans\client.py", line 192, in translate raise ValueError('invalid source language') ValueError: invalid source language

I ran in a Windows environment and was also affected by the plugin version issue on macOS. I am trying to synchronize the environment, Looking forward to your reply. If possible, I hope to see your updates every day so that I know you are not involved in the war. May the world be peaceful

What versions did you use for each plugin to make it work? can you share this.

from heygenclone.

xufengnian avatar xufengnian commented on July 18, 2024

What versions did you use for each plugin to make it work? can you share this.

this is a good idea,we can use discord.I create a channels.https://discord.gg/f6SErX9d

from heygenclone.

BrasD99 avatar BrasD99 commented on July 18, 2024

@CodingRockz, i think i can create a group in Telegram where we can freely discuss everything.
Here is invite link: https://t.me/+IlOPXyNkscxhZjJi

from heygenclone.

BrasD99 avatar BrasD99 commented on July 18, 2024

@douzhihao please join group, invite link in the comment above. In Telegram i can answer faster.

from heygenclone.

BrasD99 avatar BrasD99 commented on July 18, 2024

Still looking for a solution. Everything is complicated by the fact that I have a MacOs on which I need to install miniconda/miniforge to work correctly. I want to make a correct and common solution for all platforms.

Is this working fully on your MacOS ? and the issue is only on windows?

No, currently i have some troubles with it too. I think I'm already close to solving a common problem. The fault is on my side, I understand that. I will make a list myself for the future requirements.txt.

from heygenclone.

BrasD99 avatar BrasD99 commented on July 18, 2024

I was able to fix the installation of dependencies in the commit. It worked for me locally on my MacOS. I expect feedback from you (especially from those who use other platforms). I'm not closing issue yet. I have to kill this problem out to the end.

from heygenclone.

BrasD99 avatar BrasD99 commented on July 18, 2024

估计你是**人,我就中文直接回你了,这个是个小bug,源语言是中文,被识别成zh,但是google的translator只认zh-CN不认识zh,所以你自己改下core/translator.py,加个判断逻辑就好了

As i mentioned in our Telegram group, I was expecting this error. The main problem is that the number of languages is very large. I have plans to implement a dictionary for mapping codes. I would like to receive from you the languages in which you plan to translate the video. Now it will be difficult for me to implement mapping for all codes, but I will gradually supplement it!

Upd: I have added mapper!!!

from heygenclone.

BrasD99 avatar BrasD99 commented on July 18, 2024

I got feedback from the guys. I think I can close this Issue. In the future, I will implement an improved mechanism for installing dependencies.

from heygenclone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.