Giter Club home page Giter Club logo

jrdb-social's Introduction

JRDB Social SDK

Installation

pip install git+https://github.com/sjahangard/JRDB-Social.git

Data Preprocessing

jrdb_social crop <LEVEL> --data_root <DATA_ROOT> --split <SPLIT>
  • LEVEL: person, group, interaction, holistic, all
  • SPLIT: train, valid, test

Then the processed data and labels will be saved in DATA_ROOT/cropped/<LEVEL>

Data Loader

from jrdb_social.data import JRDBSocial

if __name__ == '__main__':
    # load persons data from JRDB dataset
    train_data = JRDBSocial.persons("../JRDB/train_dataset_with_activity", "train")
    
    for each in train_data:
        print(each)

    # load groups data from JRDB dataset
    train_data = JRDBSocial.groups("../JRDB/train_dataset_with_activity", "train")

    for each in train_data:
        print(each)

    # load interaction data from JRDB dataset
    train_data = JRDBSocial.interactions("../JRDB/train_dataset_with_activity", "train")

    for each in train_data:
        print(each)

    # load holistics data from JRDB dataset
    train_data = JRDBSocial.holistics("../JRDB/train_dataset_with_activity", "train")

    for each in train_data:
        print(each)

Baselines

MiniGPT-4

Getting Started

conda create -n minigpt4 python=3.10
conda activate minigpt4
conda install pytorch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 pytorch-cuda=11.8 -c pytorch -c nvidia
pip install huggingface-hub==0.18.0 matplotlib==3.7.0 psutil==5.9.4 iopath pyyaml regex tokenizers==0.13.2 tqdm transformers==4.30.0 timm==0.6.13 webdataset==0.2.48 omegaconf==2.3.0 opencv-python==4.7.0.72 decord==0.6.0 peft==0.2.0 sentence-transformers gradio==3.47.1 accelerate==0.20.3 bitsandbytes wandb
pip install git+https://github.com/sjahangard/JRDB-Social.git

Then you need to download minigptv2_checkpoint.pth from the original repository and put it in the baselines/MiniGPT-4 directory.

Evaluation

Evaluate for person, group, interaction levels.

python infer_jrdb_social.py --data_root <DATA_ROOT> --type <LEVEL> --max_trials <ENSEMBLE> --split <SPLIT> --llama_path <PATH/TO/llama-2-7b-chat-hf>

Evaluate for holistic level.

# counting
python infer_jrdb_social_for_holistic.py --data_root <DATA_ROOT> --max_trials <ENSEMBLE> --split <SPLIT> --llama_path <PATH/TO/llama-2-7b-chat-hf>
# binary
python infer_jrdb_social_for_holistic_category.py --data_root <DATA_ROOT> --max_trials <ENSEMBLE> --split <SPLIT> --llama_path <PATH/TO/llama-2-7b-chat-hf>

Reference

@inproceedings{jahangard2024jrdb,
  title={JRDB-Social: A Multifaceted Robotic Dataset for Understanding of Context and Dynamics of Human Interactions Within Social Groups},
  author={Jahangard, Simindokht and Cai, Zhixi and Wen, Shiki and Rezatofighi, Hamid},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={22087--22097},
  year={2024}
}

jrdb-social's People

Contributors

controlnet avatar sjahangard avatar

Watchers

 avatar Kostas Georgiou avatar  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.