YORU Your Optimal Recognition Utility

YORU (Your Optimal Recognition Utility)

Latest release Latest beta License: AGPL v3 Documentation Sponsor GitHub stars Contributions Welcome

YORU logo YORU demonstration

“YORU” (Your Optimal Recognition Utility) is an open-source animal behavior detection system using Python. YORU can detect animal behaviors, not only single-animal behaviors but also social behaviors. YORU also provides online/offline analysis and closed-loop manipulation.

“YORU: Animal behavior detection with object-based approach for real-time closed-loop feedback”

Versions

Channel Version Notes
Latest Release v1.1.2 Stable release recommended for general use
Latest Beta v2.0.0-beta.4 Preview of the next major version — may contain bugs

To use the beta version, check out the corresponding tag:

git checkout v2.0.0-beta.4

The v2.0 betas launch without Google Chrome. Beta 4 brings YOLOv5 back, so models trained with YORU v1 load again. It also moves PyTorch to the CUDA 12.8 build for RTX 50-series GPUs, which needs NVIDIA driver 570 or newer, and corrects the Evaluation sub-module’s AP. Read the Beta Release Notes before installing or upgrading.

What’s new in v1.1.2

See the release page for the full list.

Features

Quick install

These steps install the stable release (v1.1.2). The Install guide has the details, including the prerequisites for macOS.

Before you start, install:

Install with uv (Windows, Linux, macOS)

  1. Install uv.

    Windows (PowerShell):

     winget install --id=astral-sh.uv -e
    

    macOS / Linux:

     curl -LsSf https://astral.sh/uv/install.sh | sh
    
  2. Clone the repository and build the environment.

     git clone https://github.com/Kamikouchi-lab/YORU.git
     cd YORU
     uv sync
    
  3. Run YORU from the repository folder.

     uv run yoru
    

Install with conda (Windows, Linux)

  1. Download or clone the YORU project.
     cd "Path/to/download"
     git clone https://github.com/Kamikouchi-lab/YORU.git
    
  2. Create a virtual environment with the YORU.yml file (Python 3.10):

      conda env create -f "Path/to/YORU.yml"
    
  3. Activate the virtual environment in the command prompt or Anaconda prompt.

      conda activate yoru
    
  4. Install PyTorch. The cu118 / cu121 choice has to be one that your driver supports.

    • For CUDA==11.8
     pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 --index-url https://download.pytorch.org/whl/cu118
    
    • For CUDA==12.1
     pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 --index-url https://download.pytorch.org/whl/cu121
    
  5. Run YORU from the YORU project folder.

     conda activate yoru
     cd "Path/to/YORU/project/folder"
     python -m yoru
    

Learn about YORU

Requirements

OS

Hardware

Software

Development environments

Reference

License:

AGPL-3.0 License: YORU is intended for research/academic/personal use only. See the LICENSE file for more details.

Third-Party Libraries and Licenses

This project includes code from the following repositories: