Skip to content

Conversation

Jaymegarfunkel-lgtm/Wav2Lip
@aihapmhmd-cloud
Copy link

--- الخطوة 1: تثبيت Wav2Lip والمتطلبات ---

!git clone https://github.com/Rudrabha/Wav2Lip.git
%cd Wav2Lip
!pip install -r requirements.txt
!pip install gdown

--- الخطوة 2: تحميل نموذج Wav2Lip المدرب مسبقًا ---

!gdown 1lwG5nDwHvG0l3qU1TdxqAt9w7u6rE6zy -O Wav2Lip.pth

--- الخطوة 3: رفع الملفات (الصورة + الصوت) ---

from google.colab import files
uploaded = files.upload() # ارفع الصورة والصوت (jpg/png + mp3/m4a)

--- الخطوة 4: تشغيل Wav2Lip ---

غيّر 'input.jpg' و 'audio.m4a' إلى أسماء ملفاتك بعد الرفع

!python inference.py --checkpoint_path Wav2Lip.pth --face input.jpg --audio audio.m4a

--- الخطوة 5: تحميل الفيديو الناتج ---

from google.colab import files
files.download('results/result_voice.mp4')

1 similar comment
@aihapmhmd-cloud
Copy link

--- الخطوة 1: تثبيت Wav2Lip والمتطلبات ---

!git clone https://github.com/Rudrabha/Wav2Lip.git
%cd Wav2Lip
!pip install -r requirements.txt
!pip install gdown

--- الخطوة 2: تحميل نموذج Wav2Lip المدرب مسبقًا ---

!gdown 1lwG5nDwHvG0l3qU1TdxqAt9w7u6rE6zy -O Wav2Lip.pth

--- الخطوة 3: رفع الملفات (الصورة + الصوت) ---

from google.colab import files
uploaded = files.upload() # ارفع الصورة والصوت (jpg/png + mp3/m4a)

--- الخطوة 4: تشغيل Wav2Lip ---

غيّر 'input.jpg' و 'audio.m4a' إلى أسماء ملفاتك بعد الرفع

!python inference.py --checkpoint_path Wav2Lip.pth --face input.jpg --audio audio.m4a

--- الخطوة 5: تحميل الفيديو الناتج ---

from google.colab import files
files.download('results/result_voice.mp4')

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

Successfully merging this pull request may close these issues.

2 participants