8000 GitHub - Mithunjack/imaginify: Python || Conda || mlflow || Vue || LLM || Stable Diffusion · GitHub
[go: up one dir, main page]

Skip to content
MithunjackPublic

About

Python || Conda || mlflow || Vue || LLM || Stable Diffusion

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Imaginify - AI Image Generator & Editor

📌 Project Overview

Imaginify is a full-stack AI-powered application that allows users to:

  • 🔮 Generate creative text prompts using AI
  • 🎨 Generate images from text prompts using Stable Diffusion
  • ✂️ Edit images by removing backgrounds
  • 🪄 Future Scope: Inpainting (object removal/replacement), outpainting (extending images)

💻 Workflow

  1. Click Generate Text - Backend generates creative text.
  2. Click Generate Image - Backend uses Stable Diffusion to generate image from the text.
  3. Click Remove Background - Backend uses rembg to remove background from generated image.

⚙️ Tech Stack

Frontend

  • Framework: Vue 3 + Vite
  • Language: JavaScript
  • Styling: Tailwind CSS

Backend

  • Framework: FastAPI (Python)
  • Environment: Conda (imaginify)
  • Key Libraries:
    • rembg for background removal
    • diffusers for image generation
    • transformers for text generation
    • PIL for image handling

📂 Folder Structure

.
├── backend                 # FastAPI Backend
│   ├── main.py
│   ├── requirements.txt    # To be created if needed
├── frontend                 # Vue 3 Frontend
│   ├── src
│   │   ├── App.vue
│   │   ├── components
│   │   │   ├── ImageEditor.vue
│   ├── main.js
├── README.md

🦞 Project architecture

diagram

🚀 How to Run (Development)

1️⃣ Backend Setup

  • Activate Conda environment:
    conda activate imaginify
  • Install dependencies:
    pip install -r requirements.txt
  • Start FastAPI backend:
    uvicorn main:app --reload
  • Visit: http://localhost:8000/docs

2️⃣ Frontend Setup

  • Navigate to frontend/ folder:
    cd frontend
  • Install dependencies:
    npm install
  • Start Vue frontend:
    npm run dev
  • Visit: http://localhost:5173

🔗 Key API Endpoints

Method Endpoint Description
GET /generate-text Generates creative text prompt
GET /generate-image Generates image from generated text prompt
POST /remove-background Removes background from uploaded/generated image

📦 Requirements (Python)

fastapi
uvicorn
pillow
rembg
transformers
diffusers
torch
accelerate
onnxruntime

🚀 Deployment (Optional)

Backend

  • Add Procfile with:
    web: uvicorn main:app --host 0.0.0.0 --port $PORT
    
  • Deploy to Railway (root = backend folder).

Frontend

  • Build frontend:
    npm run build
  • Deploy dist/ to Railway Static Service or Vercel.

💡 Future Features (Planned)

✅ Object Removal (Inpainting)
✅ Object Replacement (Prompt-based Editing)
✅ Outpainting (Extending Images Beyond Borders)
✅ Project Saving (Save edit history per user)

About

Python || Conda || mlflow || Vue || LLM || Stable Diffusion

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0