This repository contains five Generative Artificial Intelligence (AI) tasks implemented using Python and Deep Learning.
The project showcases my practical understanding of Generative AI techniques such as text generation, image generation, probabilistic models, GANs, and neural style transfer.
Description:
This task uses a pre-trained GPT-2 transformer model to generate
human-like text. A short input sentence (prompt) is given, and the model
continues the text in a meaningful way.
Concepts Used:
- Natural Language Processing (NLP)
- Transformers
- Text generation
Description:
In this task, images are generated from text prompts using
diffusion-based generative models.
The model converts a descriptive sentence into a visual image.
Concepts Used:
- Diffusion models
- Text-to-image generation
- Creative AI
Description:
This task demonstrates a simple probability-based text generation method.
Each word is generated based on the previous word using a Markov process.
Concepts Used:
- Markov Chains
- Probabilistic modeling
- Basic text generation
Description:
This task uses a Conditional GAN (pix2pix) to translate one image into another.
For example:
- Sketch → Realistic image
- Map → Satellite image
Concepts Used:
- Generative Adversarial Networks (GANs)
- Conditional GANs
- Image translation
Description:
This task applies the artistic style of one image to the content of another image
using a pre-trained VGG19 convolutional neural network.
Example:
- Content image: Photograph
- Style image: Painting
Concepts Used:
- CNNs
- Feature extraction
- Artistic image generation
torch torchvision transformers diffusers numpy matplotlib pillow tqdm scipy
The following tools and technologies were used to build and run this project:
- Python (3.8+) – Used for writing all scripts and implementations
- Google Colab – Cloud-based execution with GPU support
Run on Google Colab (Recommended) Best option if your system is slow or you need GPU support.
Why Colab?
- Free GPU access
- No installation issues
- Easy to run deep learning code
Steps:
- Open https://colab.research.google.com
- Upload the project files or individual task scripts
- Enable GPU:
- Runtime → Change runtime type → Select GPU
- Run the code cells
- Google Colab for heavy tasks like Image Generation and Neural Style Transfer
- Local system for lighter tasks like Markov Chain and GPT-2 text generation
Deepak Methre