Skip to content

AJOYSR/AI-Image-generator

Repository files navigation

AI-Image-generator

This is an image generation tool that allows users to preview the top five generated images. Users can also download the images. The tool is built using DeepSeek Janus Pro 7B, along with Vite, React, and Tailwind CSS

Preview Images

image

Features

  • Generate multiple images from text descriptions
  • Preview top 5 generated images in a responsive grid
  • Download generated images in WebP format
  • Customize generation parameters:
    • Seed value for reproducibility
    • Guidance scale (CFG Weight) for creativity control
    • Temperature settings for variation control
  • Responsive design for all devices
  • Modern, intuitive user interface
  • Real-time loading states and error handling

Tech Stack

Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js (v16 or higher)
  • npm (comes with Node.js)

Getting Started

  1. Clone the repository:
git clone https://github.com/AJOYSR/AI-Image-generator.git
cd ai-image-generator
  1. Install dependencies:
npm install
  1. Create a hugging face token from hugging face from this link:
https://huggingface.co/settings/tokens

Paste that into your .env file

  1. Start the development server:
npm run dev
  1. Open your browser and visit:
http://localhost:5173

Usage

  1. Enter a descriptive prompt in the text area
  2. (Optional) Adjust generation parameters:
    • Seed: Set a specific seed for reproducible results
    • Guidance: Adjust how closely the generation follows your prompt
    • Temperature: Control the randomness of the generation
  3. Click "Generate Images" and wait for the results
  4. Preview the generated images in the gallery
  5. Download any images you like using the download button

Project Structure

ai-image-generator/
├── src/
│   ├── App.tsx         # Main application component
│   ├── main.tsx        # Application entry point
│   └── assets/         # Static assets
├── public/             # Public assets
├── index.html          # HTML template
├── package.json        # Project dependencies and scripts
├── tailwind.config.js  # Tailwind CSS configuration
├── tsconfig.json       # TypeScript configuration
└── vite.config.ts      # Vite configuration
└── .env                # Env file for hf_token

Development

To contribute to this project:

  1. Fork the repository
  2. Create a feature branch:
git checkout main
  1. Make your changes
  2. Test thoroughly
  3. Submit a pull request

License

All rights reserved - AJOY SARKER © 2025

Author

AJOY SARKER

Acknowledgments

  • DeepSeek AI for providing the Janus Pro 7B model
  • The Vite, React, and Tailwind CSS communities for their excellent tools and documentation

About

This is an image generation tool that allows users to preview the top five generated images. Users can also download the images. The tool is built using DeepSeek Janus Pro 7B, along with Vite, React, and Tailwind CSS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors