Giter Site home page Giter Site logo

image-inpainting's Introduction

Image Generation and Inpainting Tool

This repository provides a tool for generating images that align with a given text prompt while incorporating an unaltered object image into the scene. The tool ensures the generated images look natural and can also create videos from these images using Stable Diffusion models. The solution leverages publicly available pre-trained checkpoints and various libraries to achieve this goal.

click here for detailed documentation.

Table of Contents

Prerequisites

  • Python 3.7 or higher
  • CUDA-enabled GPU (recommended for faster processing)

Installation

  1. Clone the repository:
    git clone https://github.com/yourusername/image-generation-inpainting-tool.git
    cd image-generation-inpainting-tool
    
  2.  pip install -r requirements.txt
    
    

Usage

python run.py --image <path_to_input_image> --text-prompt "<text_prompt>" --output <path_to_save_generated_image> [--debug] [--video_output_path <path_to_save_video>]

Arguments

  • --image: Path to the input image.
  • --text-prompt: Text prompt for image generation.
  • --output: Path to save the generated image.
  • --debug (optional): Enable debug mode to save intermediate images.
  • --video_output_path (optional): Path to save the generated video.

image-inpainting's People

Contributors

shubham303 avatar

Watchers

 avatar Kostas Georgiou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.