Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cbh123/youtune
Fine tune SDXL on YouTube videos
https://github.com/cbh123/youtune
Last synced: 3 days ago
JSON representation
Fine tune SDXL on YouTube videos
- Host: GitHub
- URL: https://github.com/cbh123/youtune
- Owner: cbh123
- Created: 2023-10-26T22:51:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-20T13:30:17.000Z (3 months ago)
- Last Synced: 2024-08-20T15:33:41.961Z (3 months ago)
- Language: Python
- Homepage:
- Size: 44.9 KB
- Stars: 169
- Watchers: 6
- Forks: 19
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-replicate - youtune - Fine-tune SDXL and MusicGen models on YouTube videos. (Built with Replicate)
README
# YouTune
![DALL·E 2023-10-26 19 39 10 - Photo of a sophisticated logo for 'YouTune' The design emphasizes the theme of tuning videos It incorporates a stylized film reel that intertwines w](https://github.com/cbh123/youtune/assets/14149230/808411aa-cecc-4735-a2dd-18344317601a)
[YouTune Video Walkthrough](https://www.loom.com/share/193fa040b8074f44bb5ddabd4dd42b01?sid=4b09aa1b-5cd6-4e4f-a538-d3d62cb1bdc0)
YouTune makes it really easy to:
- fine-tune SDXL on images from YouTube videos
- fine-tune MusicGen on audio from YouTube videos## Fine-tuning SDXL
Just give it a URL and a model name on Replicate, and it’ll download the video, take screenshots of every 50 frames, remove near duplicates and very light/dark images, and create a training for you.
```bash
python tune.py
```## Fine-tuning MusicGen
With `--audio`, it’ll download just the audio, convert it to mp3 and create a training for you.
```bash
python tune.py --audio
```## Setup
Clone this repo, and setup and activate a virtualenv:
```bash
python3 -m pip install virtualenv
python3 -m virtualenv venv
source venv/bin/activate
```Then, install the dependencies:
`pip install -r requirements.txt`Make a [Replicate](https://replicate.com) account and set your token:
`export REPLICATE_API_TOKEN=`
## Run it!
```bash
python tune.py
```