kekwdaway-cyber/ai-image-to-video

1

stars

3

commits

Python

primary language

Jul 9, 2025

updated

README

🎬 AI Image-to-Video Generator with NSFW Support

A powerful AI-powered tool that transforms static images into dynamic videos using advanced machine learning models, including uncensored text-to-video generation with NSFW-gen-v2.

✨ Features

πŸ€– Multiple AI Models

  • Stable Video Diffusion: High-quality image-to-video generation
  • NSFW-gen-v2: Uncensored text-to-image and text-to-video generation
  • AnimateDiff: Animation-focused video generation
  • DynamiCrafter: Advanced person/object animation
  • Simple Video Generator: Fallback with 12 basic animations

🎯 Generation Modes

  • Image-to-Video: Transform static images into dynamic videos
  • Text-to-Video: Generate videos directly from text prompts (NSFW model)
  • Image-Only: Generate standalone uncensored images

🌐 Web Interface

  • Easy-to-use drag-and-drop interface
  • Real-time progress tracking via WebSocket
  • GPU status monitoring
  • Model configuration controls

⚑ Performance

  • GPU acceleration with NVIDIA CUDA
  • Automatic model fallback system
  • Memory optimization and CPU offloading
  • Async processing for multiple requests

πŸš€ Quick Start

One-Click Launch

Simply double-click start_ai_video.bat to automatically:

  • Set up virtual environment
  • Install dependencies
  • Start the server
  • Open the web interface

Manual Setup

Prerequisites

  • Python 3.8+
  • NVIDIA GPU with 8GB+ VRAM (recommended)
  • Windows 10/11

Installation

git clone https://github.com/your-username/ai-image-to-video.git
cd ai-image-to-video
start_ai_video.bat

πŸ“– Usage

Web Interface

  1. Open http://localhost:8000 in your browser
  2. For Image-to-Video: Upload an image and set parameters
  3. For Text-to-Video: Enable NSFW model and enter text prompt
  4. Click "Generate" and monitor progress
  5. Download your generated content

API Usage

# Enable NSFW model for text-to-video
curl -X POST "http://localhost:8000/configure-nsfw" \
     -H "Content-Type: application/json" \
     -d '{"enable_nsfw": true}'

# Generate video from text (no image needed)
curl -X POST "http://localhost:8000/generate-video" \
     -F "prompt=your text prompt here" \
     -F "duration=10"

# Generate image only
curl -X POST "http://localhost:8000/generate-image" \
     -H "Content-Type: application/json" \
     -d '{"prompt": "your prompt here"}'

πŸ”§ API Endpoints

EndpointMethodDescription
/GETWeb interface
/generate-videoPOSTGenerate video from image or text
/generate-imagePOSTGenerate image only (NSFW)
/configure-nsfwPOSTEnable/disable NSFW model
/model-infoGETGet current model information
/progress/{job_id}GETGet generation progress
/download/{job_id}GETDownload generated video
/download-image/{job_id}GETDownload generated image
/ws/{job_id}WebSocketReal-time progress updates

⚠️ NSFW Model Notice

The NSFW-gen-v2 model provides uncensored content generation:

  • Age Restriction: 18+ only
  • Legal Compliance: Ensure compliance with local laws
  • Responsible Use: Use ethically and responsibly
  • Content Warning: Generates explicit/adult content

πŸ“ Project Structure

ai-image-to-video/
β”œβ”€β”€ start_ai_video.bat          # πŸš€ One-click launcher
β”œβ”€β”€ README.md                   # πŸ“– This file
β”œβ”€β”€ backend/                    # πŸ”§ Server code
β”‚   β”œβ”€β”€ main.py                # FastAPI server
β”‚   β”œβ”€β”€ requirements.txt       # Dependencies
β”‚   └── services/              # AI model services
β”œβ”€β”€ frontend/                   # 🌐 Web interface
β”œβ”€β”€ docs/                      # πŸ“š Documentation
β”œβ”€β”€ tests/                     # πŸ§ͺ Test files
β”œβ”€β”€ scripts/                   # πŸ”¨ Utility scripts
└── temp/                      # πŸ—‚οΈ Temporary files

πŸŽ›οΈ Configuration

The application automatically:

  • Detects available GPU/CUDA
  • Downloads models on first use (~10GB)
  • Falls back gracefully between models
  • Optimizes memory usage

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests: python tests/test_nsfw_integration_simple.py
  5. Submit a pull request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


⚑ Ready to create amazing AI videos? Run start_ai_video.bat and get started!

Contributors

JonOlsenCa

3 commits

kekwdaway-cyber/ai-image-to-video

1

stars

3

commits

Python

primary language

Jul 9, 2025

updated

README

🎬 AI Image-to-Video Generator with NSFW Support

A powerful AI-powered tool that transforms static images into dynamic videos using advanced machine learning models, including uncensored text-to-video generation with NSFW-gen-v2.

✨ Features

πŸ€– Multiple AI Models

  • Stable Video Diffusion: High-quality image-to-video generation
  • NSFW-gen-v2: Uncensored text-to-image and text-to-video generation
  • AnimateDiff: Animation-focused video generation
  • DynamiCrafter: Advanced person/object animation
  • Simple Video Generator: Fallback with 12 basic animations

🎯 Generation Modes

  • Image-to-Video: Transform static images into dynamic videos
  • Text-to-Video: Generate videos directly from text prompts (NSFW model)
  • Image-Only: Generate standalone uncensored images

🌐 Web Interface

  • Easy-to-use drag-and-drop interface
  • Real-time progress tracking via WebSocket
  • GPU status monitoring
  • Model configuration controls

⚑ Performance

  • GPU acceleration with NVIDIA CUDA
  • Automatic model fallback system
  • Memory optimization and CPU offloading
  • Async processing for multiple requests

πŸš€ Quick Start

One-Click Launch

Simply double-click start_ai_video.bat to automatically:

  • Set up virtual environment
  • Install dependencies
  • Start the server
  • Open the web interface

Manual Setup

Prerequisites

  • Python 3.8+
  • NVIDIA GPU with 8GB+ VRAM (recommended)
  • Windows 10/11

Installation

git clone https://github.com/your-username/ai-image-to-video.git
cd ai-image-to-video
start_ai_video.bat

πŸ“– Usage

Web Interface

  1. Open http://localhost:8000 in your browser
  2. For Image-to-Video: Upload an image and set parameters
  3. For Text-to-Video: Enable NSFW model and enter text prompt
  4. Click "Generate" and monitor progress
  5. Download your generated content

API Usage

# Enable NSFW model for text-to-video
curl -X POST "http://localhost:8000/configure-nsfw" \
     -H "Content-Type: application/json" \
     -d '{"enable_nsfw": true}'

# Generate video from text (no image needed)
curl -X POST "http://localhost:8000/generate-video" \
     -F "prompt=your text prompt here" \
     -F "duration=10"

# Generate image only
curl -X POST "http://localhost:8000/generate-image" \
     -H "Content-Type: application/json" \
     -d '{"prompt": "your prompt here"}'

πŸ”§ API Endpoints

EndpointMethodDescription
/GETWeb interface
/generate-videoPOSTGenerate video from image or text
/generate-imagePOSTGenerate image only (NSFW)
/configure-nsfwPOSTEnable/disable NSFW model
/model-infoGETGet current model information
/progress/{job_id}GETGet generation progress
/download/{job_id}GETDownload generated video
/download-image/{job_id}GETDownload generated image
/ws/{job_id}WebSocketReal-time progress updates

⚠️ NSFW Model Notice

The NSFW-gen-v2 model provides uncensored content generation:

  • Age Restriction: 18+ only
  • Legal Compliance: Ensure compliance with local laws
  • Responsible Use: Use ethically and responsibly
  • Content Warning: Generates explicit/adult content

πŸ“ Project Structure

ai-image-to-video/
β”œβ”€β”€ start_ai_video.bat          # πŸš€ One-click launcher
β”œβ”€β”€ README.md                   # πŸ“– This file
β”œβ”€β”€ backend/                    # πŸ”§ Server code
β”‚   β”œβ”€β”€ main.py                # FastAPI server
β”‚   β”œβ”€β”€ requirements.txt       # Dependencies
β”‚   └── services/              # AI model services
β”œβ”€β”€ frontend/                   # 🌐 Web interface
β”œβ”€β”€ docs/                      # πŸ“š Documentation
β”œβ”€β”€ tests/                     # πŸ§ͺ Test files
β”œβ”€β”€ scripts/                   # πŸ”¨ Utility scripts
└── temp/                      # πŸ—‚οΈ Temporary files

πŸŽ›οΈ Configuration

The application automatically:

  • Detects available GPU/CUDA
  • Downloads models on first use (~10GB)
  • Falls back gracefully between models
  • Optimizes memory usage

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests: python tests/test_nsfw_integration_simple.py
  5. Submit a pull request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


⚑ Ready to create amazing AI videos? Run start_ai_video.bat and get started!

Contributors

JonOlsenCa

3 commits

Languages

Python

82.4%

Batchfile

8.4%

JavaScript

5.6%

CSS

3.3%