To run the source code directly, follow these steps:
Prerequisites:
- Install Python 3.12 (ensure you check "Add python.exe to PATH" during installation).
- Install git.
- Install uv (installation guide).
Setup Commands:
git clone https://github.com/ogkalu2/comic-translate
cd comic-translate
uv init --python 3.12
uv add -r requirements.txt --compile-bytecode
- GPU Acceleration (NVIDIA users only):
If you have an NVIDIA GPU, install
onnxruntime-gpu for better performance:
uv pip install onnxruntime-gpu
- Updating:
To update your local installation:
git pull
uv init --python 3.12
uv add -r requirements.txt --compile-bytecode
(Note: Only run uv init if you did not use uv during the initial installation.)