| # ToonCrafter-fp16 | |
| ## Overview | |
| This repository contains the `fp16` version of the ToonCrafter model, optimized for half-precision computations. The model is hosted on Hugging Face and can be accessed via the following links: | |
| - **Original Repository (Aitrepreneur/ToonCrafter-fp16):** [https://huggingface.co/Aitrepreneur/ToonCrafter-fp16](https://huggingface.co/Aitrepreneur/ToonCrafter-fp16) | |
| - **Alternative Repository (svjack/ToonCrafter-fp16):** [https://huggingface.co/svjack/ToonCrafter-fp16](https://huggingface.co/svjack/ToonCrafter-fp16) | |
| ## Installation | |
| ### Clone the Repository | |
| To clone the repository and set up the environment, follow these steps: | |
| ```bash | |
| git clone https://huggingface.co/spaces/svjack/ToonCrafter-fp16 && cd ToonCrafter-fp16 | |
| ``` | |
| ### Install Dependencies | |
| After cloning the repository, install the required dependencies using `pip`: | |
| ```bash | |
| pip install -r requirements.txt | |
| ``` | |
| Additionally, ensure that `einops` is up-to-date: | |
| ```bash | |
| pip install --upgrade einops | |
| pip install pyav==13.1.0 | |
| ``` | |
| ## Usage | |
| Once the repository is cloned and dependencies are installed, you can proceed to use the `ToonCrafter-fp16` model for your tasks. | |
| ```bash | |
| python gradio_app.py | |
| ``` | |
| - OR | |
| ```bash | |
| python run_videos.py --image_dir xingqiu_images --prompt "" --steps 50 --cfg_scale 3.0 --eta 1.0 --fs 3 --seed 123 | |
| ``` | |
| <video controls autoplay src="https://cdn-uploads.huggingface.co/production/uploads/634dffc49b777beec3bc6448/ML2bDmu64_OIBGqhV7IeX.mp4"></video> | |
| ## Contributing | |
| If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request. | |
| ## License | |
| This project is licensed under the terms specified in the repository. Please refer to the LICENSE file for more details. | |