Skip to content

krishnab0841/floor_replacement_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Floor Replacement App

🧠 Virtual Office Floor Planner (AI Edition)

An AI-powered application that allows users to replace floors in images using semantic segmentation. Built with Python, PyTorch, and Gradio.

πŸš€ Features

  • AI-Powered Floor Segmentation: Uses SegFormer model to accurately detect and segment floors in images
  • Interactive Interface: Simple and intuitive Gradio-based web interface
  • Real-time Processing: See results instantly
  • Customizable: Easy to modify and extend for different use cases

πŸ› οΈ Prerequisites

  • Python 3.8 or higher
  • pip (Python package manager)

πŸš€ Installation

  1. Clone the repository:

    git clone https://github.com/krishnab0841/floor_replacement_app.git
    cd floor_replacement_app
  2. Create and activate a virtual environment (recommended):

    python -m venv venv
    .\venv\Scripts\activate  # On Windows
    # or
    source venv/bin/activate  # On macOS/Linux
  3. Install the required packages:

    pip install -r requirements.txt

πŸƒβ€β™‚οΈ How to Run

  1. Start the application:

    python App.py
  2. Open your web browser and navigate to the URL shown in the terminal (usually http://localhost:7860)

  3. Upload an office/room image and a carpet/flooring image to see the magic happen!

πŸ–ΌοΈ Example

  1. Upload an office/room photo
  2. Upload a carpet/flooring pattern
  3. Click "Generate" to see the result

πŸ“¦ Dependencies

  • gradio
  • numpy
  • Pillow
  • torch
  • transformers

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Uses the SegFormer model from Hugging Face
  • Built with Gradio for the web interface

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

🧠 Virtual Office Floor Planner (AI Edition) Virtual Office Floor Planner is an AI-powered tool that lets you redesign office floors effortlessly. Upload a photo of an office and a texture (like carpet or tiles) β€” the app automatically detects the floor area using a SegFormer deep learning model and replaces it with your chosen texture.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages