Downloads · 30 days
0
Wi-zz/joy-caption-pre-alpha
joy-caption-pre-alpha is a machine learning model from Wi-zz. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This application generates descriptive captions for images using advanced ML models. It processes single images or entire directories, leveraging CLIP and LLM models for accurate and contextual captions. It has NSFW c…
Downloads · 30 days
0
Access
Public
Updated Aug 29, 2024
Repo size
2 GB
Likes
95
Public
Click a slice to open those files.
.pt86 MB · 100%
From the Hugging Face model README
This application generates descriptive captions for images using advanced ML models. It processes single images or entire directories, leveraging CLIP and LLM models for accurate and contextual captions. It has NSFW captioning support with natural language. This is just an extension of the original author's efforts to improve performance. Their repo is located here: https://huggingface.co/spaces/fancyfeast/joy-caption-pre-alpha.
| Command | Description |
|---|---|
python app.py image.jpg | Process a single image |
python app.py /path/to/directory | Process all images in a directory |
python app.py /path/to/dir1 /path/to/dir2 | Process multiple directories |
python app.py /path/to/dir --output /path/to/output | Specify output directory |
python app.py /path/to/dir --bs 8 | Set batch size (default: 4) |
Windows
git clone https://huggingface.co/Wi-zz/joy-caption-pre-alpha
cd joy-caption-pre-alpha
python -m venv venv
.\venv\Scripts\activate
# Change as per https://pytorch.org/get-started/locally/
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
pip install -r requirements.txt
Linux
git clone https://huggingface.co/Wi-zz/joy-caption-pre-alpha
cd joy-caption-pre-alpha
python3 -m venv venv
source venv/bin/activate
pip3 install torch torchvision torchaudio
pip3 install -r requirements.txt
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.