Reading the repo
Reading the repo
How to install on macOS
MoCha: End-to-End Video Character Replacement without Structural Guidance
Saved setup from 4 h ago
Will it work on macOS?
Then run bash setup.sh. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Needs Git: xcode-select --install
git clone https://github.com/Orange-3DV-Team/MoCha.git cd MoCha
Python 3.x (no version pinned)
brew install python
python -m venv .venv source .venv/bin/activate pip install -r requirements.txt
Step 1: Clone this repository
git clone https://github.com/Orange-3DV-Team/MoCha.git
cd MoCha
Step 2: Set up the environment
# 1. Create conda environment
conda create -n MoCha python==3.10
# 2. Activate the environment
conda activate MoCha
# 3. Install pip dependencies
pip install -r requirements.txt
Step 3: Download the pretrained checkpoints
Please download from huggingface and place it in ./checkpoints.
Step 4: Test the example videos
python inference_mocha.py
To start your own character replacement with MoCha, the following three inputs are required:
https://github.com/user-attachments/assets/3ae70cc1-9bf2-47ca-b6c2-bf7c84f0054f
Then organize your test data following the structure of the ./data/test_data.csv.
source_video: Path to Source Video.source_mask: Path to Designation Mask.reference_1: Path to first Reference Image.reference_2: Path to second Reference Image. This image needs to be a high-quality, front-facing facial close-up. (You can even zoom up your first reference image!) If you really cannot provide this reference image, leave it as None.Finally, test your videos by:
python inference_mocha.py --data_path path/to/your/data.csv
No reports for macOS yet.
Opens a chat with this manual already filled in, for macOS. It uses your own account; gitmanual sends nothing.