File size: 1,747 Bytes
b9d6278
2005a01
 
 
 
 
 
 
 
 
 
 
 
 
 
58e558d
2005a01
 
 
 
 
 
 
 
 
 
 
 
 
2927457
2005a01
 
 
 
 
6dcedfc
 
 
dd470cd
 
 
 
 
 
 
6dcedfc
2005a01
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

# 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.