Welcome to the AI Image Generation & Object Detection App! This project utilizes Stable Diffusion for text-to-image generation and DETR (DEtection TRansformer) for object detection in images. ๐จ๐
โ
Generate Images from text prompts using Stable Diffusion ๐ผ๏ธ
โ
Detect Objects in uploaded images with DETR ๐ค
โ
Download Generated Images with a single click โฌ๏ธ
โ
Streamlit Web Interface for an easy-to-use experience ๐
-
Clone this repository:
https://github.com/machinelearningprodigy/objectDetection
cd objectDetection
-
Install dependencies:
pip install -r requirements.txt
-
Download the Stable Diffusion model weights:
mkdir stable_diffusion_weights
Place your model weights inside the
stable_diffusion_weights
folder. -
Run the app:
streamlit run app.py
1๏ธโฃ Enter a text prompt (e.g., "A futuristic city at sunset")
2๏ธโฃ Click Generate Image
3๏ธโฃ View and download your AI-generated masterpiece! ๐
1๏ธโฃ Upload an image
2๏ธโฃ The model will detect objects and display bounding boxes ๐ผ๏ธ
3๏ธโฃ View detected objects with labels and confidence scores ๐
- ๐ค Stable Diffusion (RunwayML Stable Diffusion v1-5)
- ๐ DETR (DEtection TRansformer)
- ๐ Streamlit (Interactive UI)
- ๐๏ธ PIL (Pillow) (Image Processing)
- ๐ฅ PyTorch (Deep Learning Framework)
Watch the AI generate images in real-time! ๐จ
This project is licensed under the MIT License. Feel free to use and modify it! ๐ก
๐ Enjoy AI Creativity! ๐