Giter VIP home page Giter VIP logo

yolov5-plus-sam-sticker-generator's Introduction

YOLOv5 + Segment Anything Model Sticker Generator ๐Ÿ”โœ‚๏ธ

Description

Welcome to the YOLOv5 + Segment Anything Model project! ๐Ÿš€ โœจ This project combines the power of the YOLOv5 object detection model with the Segment Anything Model from Meta Research to create bounding boxes, perform segmentation, and extract stickers in RGBA format from images, saving the output as PNG files. The project also includes a script that automates the process, although currently it only runs on CPU.

Features

๐Ÿš€ Object detection with YOLOv5 ๐Ÿ” Image segmentation with Segment Anything ๐ŸŽจ Sticker extraction in RGBA format ๐Ÿ–ผ๏ธ Automation script for easy usage ๐Ÿ’ก Jupyter notebook for visualization

Installation and Usage

  1. ๐Ÿด Fork the repository to your GitHub account.
  2. โฌ‡๏ธ Clone the forked repository to your local machine.
  3. ๐Ÿ’ฟ Navigate to the local repository using the command line.
  4. ๐Ÿ’ป Run the script using the following command:
    python sticker_script.py --input_image assets/dog.jpg,
    where assets/dog.jpg is the path to the input image you want to generate stickers from.
  5. โœ‰๏ธ The generated stickers will be saved in the "results" folder for further usage.

Usage Preview

Input image - - Output Sticker:


Input Image Output Sticker

Input Image Output Sticker

Requirements

The following dependencies are required to run the YOLOv5 and Segment Anything Sticker Generator:

  1. Python 3.x
  2. YOLOv5
  3. Segment Anything
  4. Pytorch >= 1.7
  5. Torchvision >= 0.8
  6. PIL (Python Imaging Library)
  7. Numpy

You can install these dependencies manually using the package manager of your choice.

yolov5-plus-sam-sticker-generator's People

Contributors

k-byzid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.