Skip to content

SiddharthaChakrabarty/Custom-Creations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Custom-Creations

AI-powered customization platform for furniture and virtual dressing.

Installation

Backend

  1. Clone the repository:

    git clone <repository_url>
    cd Custom-Creations/backend
  2. Create a virtual environment (recommended):

    python3 -m venv venv
    source venv/bin/activate  # On Linux/macOS
    venv\Scripts\activate  # On Windows
  3. Install dependencies:

    pip install Flask flask-cors Werkzeug google-generativeai
  4. Set your Gemini API key: Replace "YOUR API KEY" with your actual Gemini API key in backend/app.py.

  5. Create the uploads directory:

    mkdir images

Frontend

  1. Navigate to the frontend directory:

    cd ../frontend
  2. Install dependencies:

    npm install

Usage/Examples

Backend

  1. Run the Flask app:

    cd ../backend
    python app.py

    The backend server will start, typically on port 5000.

  2. POST /predict endpoint: This endpoint expects an image file to be sent as part of a multipart/form-data request. It analyzes the image using the Gemini AI model to provide furniture/item suggestions.

    Request Body (multipart/form-data):

    • image: The image file.

    Response (JSON):

    {
        "prediction": "..."
    }

Frontend

  1. Start the React app:

    cd ../frontend
    npm start

    This will start the development server, and the app will be accessible at http://localhost:3000.

  2. Functionality:

    The frontend provides the following routes/functionality, according to the available files:

    • /: HomePage
    • /customizer: MainPage (likely furniture customization)
    • /model/:modelUrl: ModelDetailPage
    • /room-selection: RoomSelection
    • /furniture-selection: FurnitureSelection
    • /room-editor: RoomEditor
    • /room: Room
    • /try-on: TryOn (Virtual Dressing Room)
    • /dress-gallery/:gender: DressGallery
    • /model-display/:dressModelUrl: ModelDisplay
    • /superimpose:SuperImpose

Contributing

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them with descriptive messages.
  4. Push your changes to your fork.
  5. Submit a pull request.

License

MIT

About

This repository enables users to visualize and customize interior designs. It uses a React frontend and a Flask backend with Gemini AI to provide feedback on furniture arrangement and style.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors