A comprehensive AI-powered application for generating high-quality images and videos from text prompts using state-of-the-art models like Stable Diffusion and AnimateDiff.
IMAGE-AND-VIDEO-GENERATION/
βββ src/
β βββ core/ # Core AI model integration
β βββ models/ # Model management and loading
β βββ ui/ # User interface components
β βββ utils/ # Utility functions and helpers
β βββ cloud/ # Cloud provider integrations
βββ tests/ # Unit and integration tests
βββ configs/ # Configuration files
βββ docs/ # Documentation
βββ assets/ # Static assets and resources
βββ examples/ # Example scripts and notebooks
βββ requirements.txt # Python dependencies
git clone <repository-url>
cd IMAGE-AND-VIDEO-GENERATION
python -m venv venv
venv\Scripts\activate # Windows
# source venv/bin/activate # Linux/Mac
pip install -r requirements.txt
Note: If you encounter import errors like "None of PyTorch, TensorFlow >= 2.0, or Flax have been found", make sure you're using the correct Python environment where the packages are installed. The virtual environment approach above ensures all dependencies are correctly installed and accessible.
If you're using an MSYS2/MinGW environment, you may need to use:
python -m pip install -r requirements.txt
For more detailed troubleshooting, check the SOLUTION_SUMMARY.md and FIX_INSTRUCTIONS.md files.
Streamlit Prototype (Quick Start):
streamlit run src/ui/streamlit_app.py
Desktop Application:
python src/ui/desktop_app.py
The application now supports multiple video generation models with different capabilities:
Models are automatically downloaded and cached on first use. The application intelligently manages memory and switches between models as needed.
The application automatically detects available GPUs and optimizes settings accordingly:
Support for cloud GPU instances:
# Install development dependencies
pip install -r requirements.txt
# Run tests
pytest tests/
# Code formatting
black src/
flake8 src/
# Build standalone executable
pyinstaller configs/pyinstaller.spec
# Build Docker image
docker build -t ai-generation-studio .
# Run container
docker run -p 8501:8501 ai-generation-studio
Check the examples/ directory for:
For issues, questions, or contributions:
docs/examples/Import Errors ("None of PyTorch, TensorFlow >= 2.0, or Flax have been found")
venv\Scripts\activate (Windows) or source venv/bin/activate (Linux/Mac)pip list | grep torchPython Version Mismatch
python and pip are using the same Python versionpython -m pip instead of pip to ensure version consistencyMSYS2/MinGW Environment Issues
python -m pip install instead of pip installONNX Runtime Errors on Windows
pip uninstall onnxruntime onnxruntime-gpuFor more detailed troubleshooting, check the SOLUTION_SUMMARY.md and FIX_INSTRUCTIONS.md files.
This project is licensed under the MIT License - see the LICENSE file for details.
32 commits
1 commits
Python
99.8%
A comprehensive AI-powered application for generating high-quality images and videos from text prompts using state-of-the-art models like Stable Diffusion and AnimateDiff.
IMAGE-AND-VIDEO-GENERATION/
βββ src/
β βββ core/ # Core AI model integration
β βββ models/ # Model management and loading
β βββ ui/ # User interface components
β βββ utils/ # Utility functions and helpers
β βββ cloud/ # Cloud provider integrations
βββ tests/ # Unit and integration tests
βββ configs/ # Configuration files
βββ docs/ # Documentation
βββ assets/ # Static assets and resources
βββ examples/ # Example scripts and notebooks
βββ requirements.txt # Python dependencies
git clone <repository-url>
cd IMAGE-AND-VIDEO-GENERATION
python -m venv venv
venv\Scripts\activate # Windows
# source venv/bin/activate # Linux/Mac
pip install -r requirements.txt
Note: If you encounter import errors like "None of PyTorch, TensorFlow >= 2.0, or Flax have been found", make sure you're using the correct Python environment where the packages are installed. The virtual environment approach above ensures all dependencies are correctly installed and accessible.
If you're using an MSYS2/MinGW environment, you may need to use:
python -m pip install -r requirements.txt
For more detailed troubleshooting, check the SOLUTION_SUMMARY.md and FIX_INSTRUCTIONS.md files.
Streamlit Prototype (Quick Start):
streamlit run src/ui/streamlit_app.py
Desktop Application:
python src/ui/desktop_app.py
The application now supports multiple video generation models with different capabilities:
Models are automatically downloaded and cached on first use. The application intelligently manages memory and switches between models as needed.
The application automatically detects available GPUs and optimizes settings accordingly:
Support for cloud GPU instances:
# Install development dependencies
pip install -r requirements.txt
# Run tests
pytest tests/
# Code formatting
black src/
flake8 src/
# Build standalone executable
pyinstaller configs/pyinstaller.spec
# Build Docker image
docker build -t ai-generation-studio .
# Run container
docker run -p 8501:8501 ai-generation-studio
Check the examples/ directory for:
For issues, questions, or contributions:
docs/examples/Import Errors ("None of PyTorch, TensorFlow >= 2.0, or Flax have been found")
venv\Scripts\activate (Windows) or source venv/bin/activate (Linux/Mac)pip list | grep torchPython Version Mismatch
python and pip are using the same Python versionpython -m pip instead of pip to ensure version consistencyMSYS2/MinGW Environment Issues
python -m pip install instead of pip installONNX Runtime Errors on Windows
pip uninstall onnxruntime onnxruntime-gpuFor more detailed troubleshooting, check the SOLUTION_SUMMARY.md and FIX_INSTRUCTIONS.md files.
This project is licensed under the MIT License - see the LICENSE file for details.
32 commits
1 commits
Python
99.8%