Skip to content

# Image Style Transfer Web App using React, Vite, and Tailwind CSS A front-end application that allows users to upload content and style images for style transfer. The application communicates with a Django backend to process the images using deep learning models. It displays the transformed image with an intuitive user interface.

Notifications You must be signed in to change notification settings

kelvinprabhu/Neuro_brush_React_vite_app

Repository files navigation

Image Style Transfer Web App using React, Vite, and Tailwind CSS

This front-end application provides a user-friendly interface to interact with the Django backend for image style transfer. It enables users to upload images, process them, and view the transformed image seamlessly.

Key Features

  1. Image Upload and Preview:

    • User Interface: A clean and intuitive design built with Tailwind CSS for rapid styling and responsiveness.
    • Image Preview: Users can preview uploaded images before submission, ensuring correct images are processed.
  2. Real-Time Image Processing:

    • Communication with Django API: Uses fetch requests to interact with the Django API endpoint for image upload and style transfer.
    • Loading State: While waiting for the backend response, a loading spinner is displayed to maintain a smooth user experience.
  3. Style Transfer Process:

    • API Request: Upon image upload, the frontend sends the images as form data (content and style) to the Django backend.
    • Image Transformation: The backend processes the images using deep learning techniques, integrating a pre-trained VGG19 model to apply style transfer.
    • Result Handling: The URL of the resulting image (generated in the Django backend) is returned to the frontend.
  4. Displaying Results:

    • Image Display: Once the result URL is received, the transformed image is displayed in the frontend with appropriate labels and a link to view the image in a new tab.
    • Accessibility: The link to the transformed image is a public URL, making it easy for users to share or view the image directly.
  5. Real-Life Application:

    • Content Creation: This web app can be used by content creators, bloggers, and marketers to quickly generate visually appealing images by transforming content with different artistic styles.
    • Art and Design: Artists can experiment with different styles on their artworks without needing specialized software or deep learning expertise.
    • Personalized Recommendations: E-commerce websites can use similar technologies to offer personalized visual recommendations to users, enhancing shopping experiences by allowing them to visualize how different styles will look with their products.
  6. Deployment:

    • Deploy the React application on cloud platforms like Vercel or Netlify for scalability and ease of access.
    • Ensure proper CORS configuration on the Django backend to allow cross-origin requests from the React frontend.
    • Utilize HTTPS to secure the communication between the frontend and backend for sensitive data.

This project showcases the integration of deep learning with modern web technologies to provide a seamless and accessible style transfer service.

About

# Image Style Transfer Web App using React, Vite, and Tailwind CSS A front-end application that allows users to upload content and style images for style transfer. The application communicates with a Django backend to process the images using deep learning models. It displays the transformed image with an intuitive user interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published