Skip to content

julrog/segment-play

 
 

Repository files navigation

Segment Play

Segment Play is a tool that shows some possibilities of real-time segmentation in an interactive scenario with a choreographic or game-like context.

Install

pip install -r requirements.txt

Install pytorch see (https://pytorch.org/get-started/locally/). Following version were used in development on Windows 10 & 11:

pip install torch==2.0.1+cu117 torchvision==0.15.2+cu117 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu117

Models

Segmentation model for MobileSAM can be downloaded from here or directly mobile-sam.pt.

Segmentation models for SAM can be downloaded from here and is licensed under the Apache 2.0 license.

Models used for tracking can be downloaded here or directly YOLOX-Tiny

Demo

Starting python src/scenario_director.py will run a demo using an USB-Camera input. The application will detect and track any person entering the cameras field of view. Various effects can be applied via segmentation of the detected and tracked persons in near real-time. You can choose the active effects by pressing certain keys, the controls are listed in the terminal. Some effects react to different attributes (e.g. position in the room and shape) of a person and allowing a live interaction with the application. The persons interacting, can see the effect immediately on a connected display. I recommend placing the webcam above a large connected display facing the area of interest.

Hardware

  • Webcam

Recommended:

  • NVIDIA GeForce RTX 3060 or better
  • CUDA
  • Large display to see the live-image from a distance

If you are interested in a custom solution and hardware, feel free to contact wizAI

License

This project is released under the Apache 2.0 license (see LICENSE). Portions of the Code are based and taken from YOLOX and OCSort located in src/ocsort. These portions have their License information included in their files.

Acknowledgement

This project was initially created by Julian Rogawski during the Choreographic Coding Lab (CCL) 06.-10.09.2023 hosted by Motion Bank the German Sports University Cologne at the Institute of Dance and Movement Culture. The CCL is part of the research project https://vortanz.ai with wizAI solutions GmbH as a partner. Special thanks to the hosts and participants of the CCL 2023 for all the inspiration.

About

Segment Play is a tool that shows some possibilities of real-time segmentation in an interactive scenario with a choreographic or game-like context.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%